Various tweaks for mobile receiving batches

this is temporary, soon will refactor all that again..
This commit is contained in:
Lance Edgar 2017-05-22 13:13:44 -05:00
parent 5cb3f15616
commit d93b91f491
4 changed files with 29 additions and 11 deletions

View file

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