# HG changeset patch # User raph # Date 1265808848 -3600 # Node ID 4ec5ae89a7b07505e3be880385168a786692dfa4 # Parent acdceed9d3c00140dcce70af573b8a8441f936d3 hide all option for dashboard activities diff -r acdceed9d3c0 -r 4ec5ae89a7b0 src/cm/templates/site/dashboard.html --- a/src/cm/templates/site/dashboard.html Wed Feb 10 14:05:24 2010 +0100 +++ b/src/cm/templates/site/dashboard.html Wed Feb 10 14:34:08 2010 +0100 @@ -256,7 +256,9 @@ - {% include "site/macros/paginator.html" %} + {% with "yes" as not_show_all%} + {% include "site/macros/paginator.html" %} + {% endwith %} {% blocktrans %}Activities{% endblocktrans %}
diff -r acdceed9d3c0 -r 4ec5ae89a7b0 src/cm/templates/site/macros/paginator.html --- a/src/cm/templates/site/macros/paginator.html Wed Feb 10 14:05:24 2010 +0100 +++ b/src/cm/templates/site/macros/paginator.html Wed Feb 10 14:34:08 2010 +0100 @@ -6,7 +6,7 @@ {% blocktrans with page_obj.start_index as sindex and page_obj.end_index as eindex and paginator.count as pcount %}{{ sindex }}-{{ eindex }} of {{ pcount }}{% endblocktrans %} {% if page_obj.has_next %}»{% else %} {% endif %} - {% if page_obj.has_previous or page_obj.has_next %}({% blocktrans %}all{% endblocktrans %}){% endif %} + {% if not_show_all %}{% else %}{% if page_obj.has_previous or page_obj.has_next %}({% blocktrans %}all{% endblocktrans %}){% endif %}{% endif %} {% else %} ({% blocktrans %}paginate{% endblocktrans %}) {% endif %}