summaryrefslogtreecommitdiffstats
path: root/bin/templates
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-07-21 14:23:26 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-24 11:46:03 -0400
commit04ce1ef4e0778b6387739a4ba5b56fdbe90d0567 (patch)
tree8757848eaf8cd5f3d43c8f0871551fdaabddb251 /bin/templates
parenta93cd8dbb2de5474ec20b728f09395575d81cac2 (diff)
downloadjenkins.debian.net-04ce1ef4e0778b6387739a4ba5b56fdbe90d0567.tar.xz
reproducible debian: decouple navigation and page writing logic
Decoupling the navigation and page writing logic made it easier to do the following: - fix a bug introduced by adding headers at the top of the mainbody div (fixed in this commit) - make package pages to use the same structure as all other pages that contain a left navigation (to do in future) Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/templates')
-rw-r--r--bin/templates/basic_page.mustache14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/templates/basic_page.mustache b/bin/templates/basic_page.mustache
index 97a60d06..0263a3a2 100644
--- a/bin/templates/basic_page.mustache
+++ b/bin/templates/basic_page.mustache
@@ -3,17 +3,21 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width" />
- {{meta_refresh}}
+ {{{meta_refresh}}}
<link href="/static/style.css" type="text/css" rel="stylesheet" />
<title>{{page_title}}</title>
</head>
<body class="wrapper">
+ {{#navigation_html}}
<header class="head">
- {{{main_navigation_html}}}
+ {{{navigation_html}}}
</header>
- <div class="mainbody">
- <h2>{{page_title}}</h2>
+ {{/navigation_html}}
+ {{#navigation_html}}<div class="mainbody">{{/navigation_html}}
+ {{#main_header}}
+ <h2>{{main_header}}</h2>
+ {{/main_header}}
{{{main_html}}}
- </div>
+ {{#navigation_html}}</div>{{/navigation_html}}
</body>
</html>