Commits

Ronny Pfannschmidt committed f5df90f

template fixes

Comments (0)

Files changed (2)

lodgeit/templates/compare_paste.html

 {% block body %}
   <p>
     Differences between the pastes
-    <a href="{{ url('pastes/show_paste', identifier=new.identifier) }}">#{{ new.identifier }}</a> ({{ new.pub_date|datetimeformat }})
-    and <a href="{{ url('pastes/show_paste', identifier=old.identifier) }}">#{{ old.identifier }}</a> ({{ old.pub_date|datetimeformat }}). Download as <a href="{{ url('pastes/unidiff_paste', new_id=new.identifier, old_id=old.identifier) }}">unified diff</a>.
+    <a href="{{ url_for('pastes.show_paste', identifier=new.identifier) }}">#{{ new.identifier }}</a> ({{ new.pub_date|datetimeformat }})
+    and <a href="{{ url_for('pastes.show_paste', identifier=old.identifier) }}">#{{ old.identifier }}</a> ({{ old.pub_date|datetimeformat }}). Download as <a href="{{ url_for('pastes.unidiff_paste', new_id=new.identifier, old_id=old.identifier) }}">unified diff</a>.
   </p>
   {% if diff.chunks %}
     {{ render_diff_part(diff) }}

lodgeit/templates/paste_tree.html

   <ul class="paste_tree">
   {%- for paste in [paste] recursive %}
     <li{% if paste.identifier == current
-      %} class="highlighted"{% endif %}><a href="{{ url('pastes/show_paste', identifier=paste.identifier)
+      %} class="highlighted"{% endif %}><a href="{{ url_for('pastes.show_paste', identifier=paste.identifier)
       }}">Paste #{{ paste.identifier }}</a> &mdash; {{
         paste.pub_date|datetimeformat }}
       {%- if paste.children -%}