Commits

Radomir Dopieralski committed 47b21d9

fix recent changes template

Comments (0)

Files changed (3)

 class WikiPage(object):
     """Everything needed for rendering a page."""
 
-    template_name = 'page.html'
-
     def __init__(self, wiki, request, title, mime):
         self.request = request
         self.title = title
 class WikiPageSpecial(WikiPage):
     """Special pages, like recent changes, index, etc."""
 
-    template_name = 'page_special.html'
-
 
 class WikiPageText(WikiPage):
     """Pages of mime type text/* use this for display."""

hatta/templates/changes.html

 {% extends "page_special.html" %} 
 
-{% block page_title %}{{ _("Recent changes") }}{% endblock %}
+{% block page_title %}<h1>{{ _("Recent changes") }}</h1>{% endblock %}
 {% block title %}{{ _("Recent changes") }} - {{ wiki.site_name }}{% endblock %}
 
 {% block content %}
     {% for date, date_url, title, author, comment in changes %}
         <li><a href="{{ date_url }}">{{ date_html(date)|safe }}</a>
             <b>{{ page.wiki_link(title)|safe }}</b> . . . .
-            <i>{{ page.wiki_link('~%s' % author, author)|safe }}</i>
+            <i>{{ page.wiki_link("~%s" % author, author)|safe }}</i>
             <div class="comment">{{ comment }}</div>
         </li>
     {% endfor %}

hatta/templates/edit_file.html

 {% extends "page.html" %}
 
-{% block page_title %}<h1>{{ _("Editing \"%(title)s\"", title=title) }}</h1>{% endblock %}
+{% block page_title %}<h1>{{ _("Editing \"%(title)s\"",
+                             title=title) }}</h1>{% endblock %}
 {% block title %}{{ _("Editing \"%(title)s\"", title=title) }}{% endblock %}
 
 {% block content %}
     <p>{{ _("This is a binary file, it can't be edited on a wiki. "
             "Please upload a new version instead.") }}</p>
-    <form action="" method="POST" class="editor" enctype="multipart/form-data"><div>
+    <form action="" method="POST" class="editor"
+          enctype="multipart/form-data"><div>
         <div class="upload"><input type="file" name="data"></div>
         <label class="comment">{{ _("Comment") }} <input
             name="comment" value="{{ comment }}"></label>