view examples/tutorial/geddit/templates/index.html @ 618:b6706f9346ac trunk

Simplify the tutorial project: comments are now flat, not hierarchical.
author cmlenz
date Thu, 30 Aug 2007 09:08:06 +0000
parents 06165fee45ab
children 756e7418e10c
line wrap: on
line source
<!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>News</title>
  </head>
  <body>
    <h1>News</h1>
    <p><a href="${url('/submit/')}">Submit new link</a></p>

    <ol py:if="submissions" class="submissions">
      <li py:for="submission in submissions">
        <a href="${submission.url}">${submission.title}</a>
        posted by ${submission.username}
        at ${submission.time.strftime('%m/%d/%Y %H:%M')}<br />
        <div class="info">
          <a href="${url('/info/%s/' % submission.code)}">
            ${len(submission.comments)} comments
          </a>
        </div>
      </li>
    </ol>
  </body>
</html>
Copyright (C) 2012-2017 Edgewall Software