Commits

Anonymous committed 85a7a53

the learn_mercurial page now shows a random quote.

Comments (0)

Files changed (2)

hgscm/apps/www/templatetags/extras.py

     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):

hgscm/templates/learn_mercurial.html

 </div>
 	<div class="col">					
         {% download_button %}
-        {% mercurial_tricks %}
+        {% random_quote %}
 	</div>
 </div>