RSS Git Download  Clone
Raw Blame History
  [% META title = 'Resources » Static views' -%]
<!-- BEGIN [% template.name %] -->
    [% # INCLUDE dumper.tt dump = data %]
    [% # INCLUDE dumper.tt dump = cols %]

    <h2 class="header">[% c.param('id').replace('_', ' ') | ucfirst;
        UNLESS c.param('id').match('view$'); ' view'; END %]</h2>

    <p>[% site.html.back_button %]</p>

    [% IF data.size %]
      <table class="indent">
        <tr>
            <td class="borderless"></td>
            [% FOREACH h IN cols;
                col_name = h.replace('_', ' ');
            %]
                <th><a href="[% url_with_path %]?sort_by=[% h %]">[% col_name %]</a></th>
              [% END %]
        </tr>
        [% FOREACH entry IN data # array %]
            <tr>
                <td>[% loop.count %]</td>
                [% FOREACH col IN entry %]<td>[% col %]</td>[% END %]
            </tr>
        [% END %]
      </table>
    [% ELSE %]
        <p class="info">No data</p>
    [% END %]
<!-- END [% template.name %] -->