Merge "Remove extraneous trailing slashes from link URLs"

This commit is contained in:
Jenkins 2016-04-12 16:24:29 +00:00 committed by Gerrit Code Review
commit 1cf655eb76
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<p>
Differences between the pastes
<a href="{{ old.url|e }}">#{{ old.identifier }}</a> ({{ old.pub_date|datetimeformat }})
and <a href="{{ new.url|e }}">#{{ new.identifier }}</a> ({{ new.pub_date|datetimeformat }}). Download as <a href="/unidiff/{{ old.identifier }}/{{ new.identifier }}/">unified diff</a>.
and <a href="{{ new.url|e }}">#{{ new.identifier }}</a> ({{ new.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) }}

View File

@ -27,7 +27,7 @@
{% if paste.parent %}
<li>
<a class="autoclose"
href="{{ url_for('pastes/compare_paste', new_id=paste.identifier, old_id=paste.parent.identifier ) }}/">
href="{{ url_for('pastes/compare_paste', new_id=paste.identifier, old_id=paste.parent.identifier ) }}">
{% trans %}compare it with the parent paste{% endtrans %}
</a>
</li>
@ -49,13 +49,13 @@
{% endif %}
{% if paste.parent or paste.children %}
<li>
<a href="{{ url_for('pastes/show_tree', identifier=paste.identifier) }}/">
<a href="{{ url_for('pastes/show_tree', identifier=paste.identifier) }}">
{% trans %}show paste tree{% endtrans %}
</a>
</li>
{% endif %}
<li>
<a href="{{ url_for('pastes/raw_paste', identifier=paste.identifier) }}/">
<a href="{{ url_for('pastes/raw_paste', identifier=paste.identifier) }}">
{% trans %}download paste{% endtrans %}
</a>
</li>