Mercurial > genshi > mirror
view examples/tutorial/geddit/templates/comment.html @ 621:734fbb77b579 trunk
Use system default date/time format in templates.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 19:09:28 +0000 |
parents | 756e7418e10c |
children | abad7c2ebe15 |
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>Comment on “${link.title}”</title> </head> <body> <h1>Comment on “${link.title}”</h1> <p py:if="comment"> In reply to <strong>${comment.username}</strong> at ${comment.time.strftime('%x %X')}: <blockquote>${comment.content}</blockquote> </p> <form action="" method="post"> <table summary=""><tbody><tr> <th><label for="username">Your name:</label></th> <td> <input type="text" id="username" name="username" /> <span py:if="'username' in errors" class="error">${errors.username}</span> </td> </tr><tr> <th><label for="comment">Comment:</label></th> <td> <textarea id="comment" name="content" rows="6" cols="50"></textarea> <span py:if="'content' in errors" class="error"><br />${errors.content}</span> </td> </tr></tbody></table> <div> <input type="submit" value="Submit" /> <input type="submit" name="cancel" value="Cancel" /> </div> </form> </body> </html>