Show path on template and manage folder pages

So the page headings stay consistent as you click around, and make it
easy to get back where you came from.
This commit is contained in:
Chris Hill-Scott
2018-11-16 14:09:14 +00:00
parent d49622c5dc
commit 738043c5c4
7 changed files with 51 additions and 18 deletions

View File

@@ -352,6 +352,12 @@ class Service():
folder,
]
def get_template_path(self, template):
return [
self.get_template_folder(template['folder']),
template,
]
def get_template_folders_and_templates(self, template_type, template_folder_id):
return (
self.get_templates(template_type, template_folder_id) +