Commits

Anonymous committed 005f4cb

Update URLs in show_paste template

Comments (0)

Files changed (1)

lodgeit/views/show_paste.html

   <div class="related">
     <h3><a href="javascript:LodgeIt.toggleRelatedBox()">{% trans %}Paste Details{% endtrans %}</a></h3>
     <div class="quick">
-      <p><a href="/?reply_to={{ paste.identifier }}">{% trans %}reply{% endtrans %}</a> |
-         <a href="/raw/{{ paste.identifier }}/">{% trans %}raw{% endtrans %}</a></p>
+      <p><a href="{{ url('pastes/new_paste', reply_to=paste.identifier) }}">{% trans %}reply{% endtrans %}</a> |
+         <a href="{{ url('pastes/raw_paste', identifier=paste.identifier) }}">{% trans %}raw{% endtrans %}</a></p>
     </div>
     <div class="content">
       <p>{% trans pub_date=paste.pub_date|datetimeformat %}posted on {{ pub_date }}{% endtrans %}</p>
       <ul>
-        <li><a class="autoclose" href="/?reply_to={{ paste.identifier }}">{% trans %}reply to this paste{% endtrans %}</a></li>
+        <li><a class="autoclose" href="{{ url('pastes/new_paste', reply_to=paste.identifier) }}">{% trans %}reply to this paste{% endtrans %}</a></li>
         {% if paste.parent %}
-          <li><a class="autoclose" href="/compare/{{ paste.identifier }}/{{
-              paste.parent.identifier }}/">{% trans %}compare it with the parent paste{% endtrans %}</a></li>
+          <li><a class="autoclose" href="{{ url('pastes/compare_paste', new_id=paste.identifier, old_id=paste.parent.identifier) }}/">{% trans %}compare it with the parent paste{% endtrans %}</a></li>
           <li><a class="autoclose" href="{{ paste.parent.url|e }}">{% trans %}look at the parent paste{% endtrans %}</a></li>
         {% endif %}
         {% if paste.children %}
           </li>
         {% endif %}
         {% if paste.parent or paste.children %}
-          <li><a href="/tree/{{ paste.identifier }}/">{% trans %}show paste tree{% endtrans %}</a></li>
+          <li><a href="{{ url('pastes/show_tree', identifier=paste.identifier) }}">{% trans %}show paste tree{% endtrans %}</a></li>
         {% endif %}
-        <li><a href="/raw/{{ paste.identifier }}/">{% trans %}download paste{% endtrans %}</a></li>
-        <li>{% trans %}compare with paste{% endtrans %} <form action="/compare/" method="post">
+        <li><a href="{{ url('pastes/raw_paste', identifier=paste.identifier) }}">{% trans %}download paste{% endtrans %}</a></li>
+        <li>{% trans %}compare with paste{% endtrans %} <form action="{{ url('pastes/compare_paste') }}" method="post">
           <input type="hidden" name="old" value="{{ paste.identifier }}">
           <input type="text" name="new" value="#">
           <input type="submit" value="{% trans %}compare{% endtrans %}">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.