Mercurial > genshi > mirror
diff examples/tutorial/geddit/templates/info.html @ 628:9822dfff0fd5 trunk
GenshiTutorial: tweaks to sync with code on wiki page.
author | cmlenz |
---|---|
date | Mon, 03 Sep 2007 19:59:03 +0000 |
parents | abad7c2ebe15 |
children | f779e566884d |
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/info.html +++ b/examples/tutorial/geddit/templates/info.html @@ -5,8 +5,8 @@ <xi:include href="layout.html" /> <head> <title>${link.title}</title> - <link rel="alternate" title="Geddit: ${link.title}" - type="application/atom+xml" href="${url('/feed/%s/' % link.id)}" /> + <link rel="alternate" type="application/atom+xml" title="Geddit: ${link.title}" + href="${url('/feed/%s/' % link.id)}" /> <script type="text/javascript"> function loadCommentForm(a) { $.get("${url('/comment/%s/' % link.id)}", {}, function(html) { @@ -29,9 +29,7 @@ if ($("ul.comments").length == 0) { a.parent().before('<ul class="comments"></ul>'); } - $("ul.comments") - .find("li.hilite").removeClass("hilite").end() - .append($(elem).addClass("hilite")).slideDown(); + $("ul.comments").append($(elem)); closeForm(); } }); @@ -59,6 +57,6 @@ py:for="num, comment in enumerate(link.comments)" /> </ul> - <p><a class="action" href="${url('/comment/%s/' % link.id)}">comment</a></p> + <p><a class="action" href="${url('/comment/%s/' % link.id)}">Add comment</a></p> </body> </html>