diff options
author | Lennart Weller <lhw@ring0.de> | 2013-03-17 00:43:14 +0100 |
---|---|---|
committer | Lennart Weller <lhw@ring0.de> | 2013-03-17 00:43:14 +0100 |
commit | b9e4dfad131f8678dfd51c7e7ce209ef2a0c6c02 (patch) | |
tree | bdea32e7d5a8679634f57fc202bec27320698155 /src/web.vala | |
parent | e52ef9c8125562cf2afcd0655fc00068e698594d (diff) | |
parent | 88899c833223608e51102d7c7a61afdf62b12d4c (diff) | |
download | serial-barcode-scanner-b9e4dfad131f8678dfd51c7e7ce209ef2a0c6c02.tar.bz2 |
Merge branch 'master' into rest-api
Diffstat (limited to 'src/web.vala')
-rw-r--r-- | src/web.vala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/web.vala b/src/web.vala index ff2b8ce..79942f7 100644 --- a/src/web.vala +++ b/src/web.vala @@ -440,9 +440,7 @@ public class WebServer { string table = ""; foreach(var e in db.get_stock()) { - table += "<tr><td><a href=\"/products/%s\">%s</a></td><td><a href=\"/products/%s\">%s</a></td><td>%d</td><td>%s€</td><td>%s€</td></tr>".printf( - e.id, e.id, e.id, e.name, e.amount, e.memberprice, e.guestprice - ); + table += @"<tr><td><a href=\"/products/$(e.id)\">$(e.id)</a></td><td><a href=\"/products/$(e.id)\">$(e.name)</a></td><td>$(e.amount)</td><td>$(e.memberprice)€</td><td>$(e.guestprice)€</td></tr>"; } t.replace("DATA", table); |