changeset 1839:4a551aafd1a4

Fix {% if index %} -> {% if dirs or files %} in index.html
author Cheer Xiao <xiaqqaix@gmail.com>
date Thu, 11 Oct 2012 15:48:05 +0800
parents 9e8e47fd8fba
children 1ffcbf6ace7e
files MoinMoin/templates/index.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/index.html	Fri Oct 05 11:13:32 2012 +0800
+++ b/MoinMoin/templates/index.html	Thu Oct 11 15:48:05 2012 +0800
@@ -14,7 +14,7 @@
 
 {% block action_bars_inner %}
     <ul>
-        {% if index %}
+        {% if dirs or files %}
         <li class="action-bar">
         <div class="moin-select-all">
             <span class="moin-select-allitem allitem-toselect" title="{{ _("Select All") }}">{{ _("Select All") }}</span>
@@ -28,7 +28,7 @@
             </div>
             <ul>
                 <li id="moin-create-newitem">{{ _("New item") }}</li>
-                {% if index %}
+                {% if dirs or files %}
                 <li id="moin-download-trigger">{{ _("Download") }}</li>
                 <li class="moin-action-tab"
                     id="moin-delete-trigger"