Dotclear


Ignore:
Timestamp:
04/26/13 16:23:16 (12 years ago)
Author:
Dsls <dsls@…>
Branch:
twig
Message:

Commented code, small tuning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/default-templates/forms/lists_layout.html.twig

    r1154 r1156  
    22{% set lenv = _context['list_' ~ listname] %} 
    33{% if lenv.entries %} 
    4 <p>Pages:</p> 
     4{% block list_pagination %} 
     5<p>Page : {% for p in lenv.pages_links %} 
     6{% if p == lenv.page or p == '...' %} 
     7<b>{{p}}</b> 
     8{% else %} 
     9<a href="{{build_url(lenv.url,{'page':p})}}">{{p}}</a> 
     10{% endif %} 
     11{% endfor %}</p> 
     12{% endblock %} 
    513{% form listname -%} 
    614{% spaceless %} 
    715<table class="maximal clear"> 
    8      <caption> {{ caption }} - {{__('Page %s')|format(page)}}</caption> 
     16     <caption> {{ caption }} - {{__('%s entries')|format(lenv.nb_entries)}}</caption> 
    917          <tr> 
    1018          {% for h in lenv.cols -%} 
     
    2937     <p>{{ __('No entries') }}</p> 
    3038{% endif %} 
     39{{ block('list_pagination')}} 
    3140{%- endblock %} 
    3241 
Note: See TracChangeset for help on using the changeset viewer.

Sites map