Mercurial > genshi > mirror
annotate examples/tutorial/geddit/templates/index.html @ 625:abad7c2ebe15 trunk
GenshiTutorial: implemented AJAX commenting.
author | cmlenz |
---|---|
date | Fri, 31 Aug 2007 17:01:00 +0000 |
parents | 58be58c03509 |
children | 3ed77fbfafa8 |
rev | line source |
---|---|
611
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
1 <!DOCTYPE html> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
2 <html xmlns="http://www.w3.org/1999/xhtml" |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
3 xmlns:xi="http://www.w3.org/2001/XInclude" |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
4 xmlns:py="http://genshi.edgewall.org/"> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
5 <xi:include href="layout.html" /> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
6 <head> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
7 <title>News</title> |
623
58be58c03509
GenshiTutorial: Minor updates to Atom feed templates.
cmlenz
parents:
622
diff
changeset
|
8 <link rel="alternate" type="application/atom+xml" title="Geddit" |
622 | 9 href="${url('/feed/')}" /> |
611
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
10 </head> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
11 <body> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
12 <h1>News</h1> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
13 |
619
756e7418e10c
GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents:
618
diff
changeset
|
14 <ol py:if="links" class="links"> |
756e7418e10c
GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents:
618
diff
changeset
|
15 <li py:for="link in links"> |
756e7418e10c
GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents:
618
diff
changeset
|
16 <a href="${link.url}">${link.title}</a> |
621 | 17 posted by ${link.username} at ${link.time.strftime('%x %X')} |
611
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
18 <div class="info"> |
619
756e7418e10c
GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents:
618
diff
changeset
|
19 <a href="${url('/info/%s/' % link.id)}"> |
756e7418e10c
GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents:
618
diff
changeset
|
20 ${len(link.comments)} comments |
615
06165fee45ab
GenshiTutorial: make URLs dynamic so that the app could theoretically be mounted on some other SCRIPT_NAME.
cmlenz
parents:
611
diff
changeset
|
21 </a> |
611
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
22 </div> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
23 </li> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
24 </ol> |
625 | 25 |
26 <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> | |
611
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
27 </body> |
236c351928a2
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
28 </html> |