diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-13 19:10:36 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-13 19:10:56 +0200 |
commit | 20dd045306fb600b56a45780d961bc1c32949470 (patch) | |
tree | dbd9acf3664a157b8652860a5b2e31e6e1ed840b /_layouts/glep.html | |
parent | glep: Include link to source file (diff) | |
download | www-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.html | 6 |
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> |