mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 19:30:00 +00:00
templates/view.html: use url_for for the 'edit_torrent' endpoint
This commit is contained in:
parent
18dd7cd66f
commit
8b7712b1d0
|
@ -10,7 +10,7 @@
|
||||||
<div class="panel-heading"{% if torrent.hidden %} style="background-color: darkgray;"{% endif %}>
|
<div class="panel-heading"{% if torrent.hidden %} style="background-color: darkgray;"{% endif %}>
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
{% if can_edit %}
|
{% if can_edit %}
|
||||||
<a href="{{ request.url }}/edit" title="Edit torrent"><i class="fa fa-fw fa-pencil"></i></a>
|
<a href="{{ url_for('edit_torrent', torrent_id=torrent.id) }}" title="Edit torrent"><i class="fa fa-fw fa-pencil"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ torrent.display_name }}
|
{{ torrent.display_name }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
Loading…
Reference in a new issue