From 28e9066f2f5269c65a6936bebc3ba1e8cc0cfb2f Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Tue, 26 Jul 2016 18:44:20 -0400 Subject: reproducible debian: breakout package page navigation into seperate template Decoupling the mainbody and left navigation for package pages allows us to dry up some of the logic and css between package pages and all other pages that have a left navigation. Signed-off-by: Holger Levsen --- .../reproducible/basic_page.mustache | 4 +- .../reproducible/package_navigation.mustache | 44 +++++++++++++++++++++ .../reproducible/package_page.mustache | 46 ---------------------- 3 files changed, 46 insertions(+), 48 deletions(-) create mode 100644 mustache-templates/reproducible/package_navigation.mustache (limited to 'mustache-templates') diff --git a/mustache-templates/reproducible/basic_page.mustache b/mustache-templates/reproducible/basic_page.mustache index f5fe0383..5ba1f8db 100644 --- a/mustache-templates/reproducible/basic_page.mustache +++ b/mustache-templates/reproducible/basic_page.mustache @@ -16,11 +16,11 @@ {{{navigation_html}}} {{/navigation_html}} - {{#navigation_html}}
{{/navigation_html}} +
{{#main_header}}

{{main_header}}

{{/main_header}} {{{main_html}}} - {{#navigation_html}}
{{/navigation_html}} +
diff --git a/mustache-templates/reproducible/package_navigation.mustache b/mustache-templates/reproducible/package_navigation.mustache new file mode 100644 index 00000000..0d579b7d --- /dev/null +++ b/mustache-templates/reproducible/package_navigation.mustache @@ -0,0 +1,44 @@ +

{{package}}

+ + +{{{project_links_html}}} diff --git a/mustache-templates/reproducible/package_page.mustache b/mustache-templates/reproducible/package_page.mustache index 9a78300a..38ca65f8 100644 --- a/mustache-templates/reproducible/package_page.mustache +++ b/mustache-templates/reproducible/package_page.mustache @@ -1,49 +1,3 @@ -
-

{{package}}

- - -{{{project_links_html}}} -