Mercurial > hg-website
changeset 240:85a7a53db1a5
the learn_mercurial page now shows a random quote.
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Wed, 23 Sep 2009 13:49:37 +0200 |
parents | ee2c1a02c693 |
children | 4f77a5b15057 4b97017259f9 |
files | hgscm/apps/www/templatetags/extras.py hgscm/templates/learn_mercurial.html |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgscm/apps/www/templatetags/extras.py Tue Sep 08 12:45:06 2009 +0200 +++ b/hgscm/apps/www/templatetags/extras.py Wed Sep 23 13:49:37 2009 +0200 @@ -41,7 +41,7 @@ def render(self, context): f = open(self._filename) quote, author = random.choice(f.readlines()).split(" - ") - result = "<p><em>" + quote + "</em>" + " - " + author + "</p>" + result = "<p><h3>Random Quote</h3><p><em>" + quote + "</em>" + " - " + author + "</p>" return result class DownloadButtonNode(template.Node):