changeset 2283:c10ce803517a

Fix to 20, proper switching of themes.
author Ashutosh Singla <ashu1461@gmail.com>
date Sun, 22 Sep 2013 00:46:53 +0530
parents 5c424120a253
children bc1cb25ca371
files MoinMoin/templates/itemviews.html
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/itemviews.html	Sun Sep 22 00:41:24 2013 +0530
+++ b/MoinMoin/templates/itemviews.html	Sun Sep 22 00:46:53 2013 +0530
@@ -1,4 +1,4 @@
-{% set exists = storage.get_item(**fqname.query) %}
+{% set exists = fqname and storage.get_item(**fqname.query) %}
 <ul class="moin-itemviews panel">
     {%- for endpoint, label, title, check_exists in cfg.item_views if not endpoint in cfg.endpoints_excluded %}
         {%- if not check_exists or check_exists and exists %}
@@ -76,8 +76,7 @@
             <a href="#" onClick="toggleTransclusionOverlays();return false;" title="{{ title }}">{{ label }}</a>
             </li>
         {%- endif %}
-
-            {%- if endpoint == 'special.supplementation' %}
+            {%- if endpoint == 'special.supplementation' and fqname %}
                 {%- for sub_item_name in cfg.supplementation_item_names %}
                     {%- set current_sub = item_name.rsplit('/', 1)[-1] %}
                     {%- if not current_sub in cfg.supplementation_item_names %}