Add Today's lunch infoscreen

This commit is contained in:
Aarni Halinen
2019-03-26 17:33:09 +02:00
parent 7bb4a6cfc1
commit 423b574cca
14 changed files with 226 additions and 86 deletions
+13
View File
@@ -193,6 +193,19 @@ class SossoInfoItem(InfoItem):
return "/static/infoscreen/html/sosso_create.html"
class LunchItem(InfoItem):
"""Class for Lunch Infoscreen item."""
display_name = _("Today's lunch")
def get_template_url(self):
return "/static/infoscreen/html/lunch.html"
@staticmethod
def get_create_template_url():
return "/static/infoscreen/html/lunch_create.html"
class EventInfoItem(InfoItem):
"""Class for Event Infoscreen item."""