aboutsummaryrefslogtreecommitdiff
path: root/mensa/frontends/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'mensa/frontends/html.py')
-rw-r--r--mensa/frontends/html.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mensa/frontends/html.py b/mensa/frontends/html.py
index 8ffec37..8a5618f 100644
--- a/mensa/frontends/html.py
+++ b/mensa/frontends/html.py
@@ -14,6 +14,10 @@ class HTMLRenderer(IPlugin) :
r = r+"<div class=\"restaurant\"><h3>"+esc(restaurant.human_name)+"</h3>"+"\n"#+base.formt(food)
food.sort(key=lambda foo: foo.category)
for i in food:
+ if options["only_student_prices"] :
+ price = base.only_student_prices(i.price)
+ else:
+ price = i.price
if options["only_veggie"] and options["only_veggie"] > i.veggie :
continue
if not i.category in cat :
@@ -22,7 +26,7 @@ class HTMLRenderer(IPlugin) :
cat.append(i.category)
if not i.category == None :
r=r+ "<h4>"+esc(i.category)+"</h4><ul class=\"food-by-cat\">\n"
- r=r+"<li class=\"fooditem\" ><span class=\"name\">" + esc(i.name) + "</span><span class=\"price\">"+ esc(i.price) + "</span><span class=\"veggie\">"+ esc(vegkeys[i.veggie])+"</span>\n"
+ r=r+"<li class=\"fooditem\" ><span class=\"name\">" + esc(i.name) + "</span><span class=\"price\">"+ esc(price) + "</span><span class=\"veggie\">"+ esc(vegkeys[i.veggie])+"</span>\n"
if i.desc :
r = r+"<div class=\"description\">"+esc(i.desc)+"</div>\n"
r = r+"</div>"