Mercurial > genshi > genshi-test
annotate examples/tutorial/geddit/templates/index.html @ 895:f30c9fb10272
i18n: some cleanup, especially for the pluralization directives.
author | cmlenz |
---|---|
date | Wed, 21 Apr 2010 20:00:37 +0000 |
parents | d648cd694286 |
children |
rev | line source |
---|---|
611
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
1 <!DOCTYPE html> |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
2 <html xmlns="http://www.w3.org/1999/xhtml" |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
3 xmlns:xi="http://www.w3.org/2001/XInclude" |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
4 xmlns:py="http://genshi.edgewall.org/"> |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
5 <xi:include href="layout.html" /> |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
6 <head> |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
7 <title>News</title> |
628
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
8 <link rel="alternate" type="application/atom+xml" title="Geddit" |
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
9 href="${url('/feed/')}" /> |
611
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
10 </head> |
633
d648cd694286
GenshiTutorial: add body class to show that the ''@*'' XPath in the match template works.
cmlenz
parents:
628
diff
changeset
|
11 <body class="index"> |
611
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
12 <h1>News</h1> |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
13 |
628
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
14 <ol py:if="links" class="links"> |
619
71d3edd302ae
GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents:
618
diff
changeset
|
15 <li py:for="link in links"> |
71d3edd302ae
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')} |
628
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
18 <div class="info"> |
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
19 <a href="${url('/info/%s/' % link.id)}"> |
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
20 ${len(link.comments)} comments |
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
21 </a> |
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
22 </div> |
611
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
23 </li> |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
24 </ol> |
625 | 25 |
628
693a7212b348
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
627
diff
changeset
|
26 <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> |
611
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
27 </body> |
16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff
changeset
|
28 </html> |