File: index.tt

package info (click to toggle)
libdancer2-perl 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,768 kB
  • sloc: perl: 8,671; sql: 14; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    <h2>Blog Entries</h2>
    <div id="entries">
    <% IF entries.size %>
        <dl>
        <% FOREACH entry IN entries %>
            <dt><a href="/entry/<% entry.id %>"><% entry.title | html_entity %></a></dt>
            <dd>
                <p>
                    (<a href="<% request.uri_for('/update/' _ entry.id) %>">Edit</a>
                    <a href="<% request.uri_for('/delete/' _ entry.id) %>">Delete</a>)<br>
                    <% entry.created_at | html_entity %><br>
                    <% entry.summary | html_entity %><br>
                </p>
            </dd>
        <% END %>
        </dl>
    <% ELSE %>
        <p>No entries found.</p>
    <% END %>
    </div>