codekasten/wortschlucker/templates/frontpage.html
phil 9d7d74faeb Impressum erstellt
Datenschutzhinweise angefangen
Umlaute formatiert
2010-04-23 09:27:57 +00:00

47 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html encoding="utf-8"
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" />
<?python
from creoleparser import text2html
#text can be creole-encoded, see http://www.wikicreole.org/imageServlet?page=CheatSheet%2Fcreole_cheat_sheet.png&width=340
content01 = """
== Online Gedanken und Ideen sammeln ==
Ob für den Namen eines neuen Projektes, Ideen für ein Geschenk, Online-Feedback oder
gemeinsamen Erstellen eines Einkaufszettels - in den Wortschlucker passt alles.
[[#|mehr Infos...]]
== Neuen Wortschlucker starten ==
"""
# creoleparser returns an utf-8 encoded string by default, but this would cause "Markup" below to fail during decoding.
# The parameter "None" for "encoding" forces unicode output. This works with "Markup".
content01 = text2html(content01, encoding=None)
?>
<head>
<title>Instant Notes</title>
</head>
<body>
${Markup(content01)}
${poll_new_small()}
<h2>All Polls</h2>
<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>