aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-10-13 19:10:36 +0200
committerMichał Górny <mgorny@gentoo.org>2017-10-13 19:10:56 +0200
commit20dd045306fb600b56a45780d961bc1c32949470 (patch)
treedbd9acf3664a157b8652860a5b2e31e6e1ed840b /_layouts/glep.html
parentglep: Include link to source file (diff)
downloadwww-20dd045306fb600b56a45780d961bc1c32949470.tar.gz
www-20dd045306fb600b56a45780d961bc1c32949470.tar.bz2
www-20dd045306fb600b56a45780d961bc1c32949470.zip
glep: Skip optional headers in table when not present
Suggested-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to '_layouts/glep.html')
-rw-r--r--_layouts/glep.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/_layouts/glep.html b/_layouts/glep.html
index e3918f6..ffc1b06 100644
--- a/_layouts/glep.html
+++ b/_layouts/glep.html
@@ -33,18 +33,24 @@ nav2-display: true
<th>Posting history</th>
<td>{{ page.Post-History | xml_escape }}</td>
</tr>
+ {% if page.Requires %}
<tr>
<th>Requires</th>
<td>{{ page.Requires | xml_escape }}</td>
</tr>
+ {% endif %}
+ {% if page.Replaces %}
<tr>
<th>Replaces</th>
<td>{{ page.Replaces | xml_escape }}</td>
</tr>
+ {% endif %}
+ {% if page.Replaced-By %}
<tr>
<th>Replaced by</th>
<td>{{ page.Replaced-By | xml_escape }}</td>
</tr>
+ {% endif %}
<tr>
<td class="text-center" colspan="2">
<a href='{{ page.source | xml_escape }}'>GLEP source (.rst)</a>