Add basic "mobile index" master view, plus support for demo mode

This commit is contained in:
Lance Edgar 2017-03-19 11:21:00 -05:00
parent 9808bb3a91
commit 581a21bd9d
16 changed files with 301 additions and 16 deletions

View file

@ -401,7 +401,7 @@ class BatchMasterView(MasterView):
del batch.data_rows[:]
super(BatchMasterView, self).delete_instance(batch)
def get_fallback_templates(self, template):
def get_fallback_templates(self, template, mobile=False):
return [
'/newbatch/{}.mako'.format(template),
'/master/{}.mako'.format(template),