codekasten/wortschlucker/templates/frontpage.html

32 lines
954 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>Instant Notes</title>
</head>
<body>
<h1>Neuen Wortschlucker starten</h1>
${poll_new_small()}
<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_admin_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>