  [% META title = 'Resources &raquo; Static views' -%]
<!-- BEGIN [% template.name %] -->
    [% # INCLUDE dumper.tt dump = data %]
    [% # INCLUDE dumper.tt dump = cols %]

    <h2 class="header">[% c.param('id').replace('_', ' ') | ucfirst %] view</h2>
    
    <p>[% site.html.back_button %]</p>
    
    [% IF data.size %]
      <table class="indent">
        <tr>
            <td class="borderless"></td>
            [% FOREACH h IN cols %]<th>[% h.replace('_', ' ') %]</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 %] -->
