28 lines
879 B
HTML
28 lines
879 B
HTML
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||
|
xmlns:py="http://genshi.edgewall.org/">
|
||
|
<xi:include href="layout.html" />
|
||
|
|
||
|
<head>
|
||
|
<title>Poll list</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>All polls</h1>
|
||
|
<p py:if="errors" class="error">Error:
|
||
|
<ul>
|
||
|
<li py:for="message in errors.values()">${message}</li>
|
||
|
</ul>
|
||
|
</p>
|
||
|
<p><a href="${base_url}polls/new" title="Create a new poll">Create a new poll</a></p>
|
||
|
<ul py:if="polls">
|
||
|
<li py:for="poll in polls">
|
||
|
<a href="${poll.get_url()}" title="Details of poll ${poll.title}">
|
||
|
Poll: ${poll.title} (${poll.get_num_of_submissions()}/${poll.get_num_of_submitters()})
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</body>
|
||
|
</html>
|
||
|
|