changeset 2465:6be2202cd055

displaying the supplementation heading only when the item exists
author sharky93 <rishabhr123@gmail.com>
date Wed, 11 Sep 2013 02:27:59 +0530
parents abd877320928
children 214e0e41a34c
files MoinMoin/themes/basic/templates/layout.html
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/layout.html	Wed Sep 11 02:26:05 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Wed Sep 11 02:27:59 2013 +0530
@@ -125,8 +125,10 @@
                         <a class="list-group-item {{ cls }}{% if url == current_url %} active{% endif %}" href="{{ url }}" {% if title %}title="{{ title }}"{% endif %}>{{ text|shorten_item_name }}</a>
                     {% endfor %}
                     
+                    {% if item_navigation %}
                     <div class="list-group-item"> {{ _("Supplementation") }} </div>
                     {{ local_panel_main(item_navigation) }}
+                    {% endif %}
 
                     {% endif %}