Refactor (coalesce) all batch-related templates

This commit is contained in:
Lance Edgar 2017-07-14 22:08:48 -05:00
parent 951057d8c2
commit 965dac9f43
22 changed files with 164 additions and 322 deletions

View file

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