1. Thomas Waldmann
  2. moin-2.0

Commits

Ashutosh Singla  committed c10ce80

Fix to 20, proper switching of themes.

  • Participants
  • Parent commits 5c42412
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/templates/itemviews.html

View file
-{% 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 %}
             <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 %}