Skip to content

Commit 241fe6f

Browse files
committed
Add 'Edit this release' button to release pages
1 parent 27aef89 commit 241fe6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/downloads/release_detail.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
{% block content %}
2323
<article class="text">
24+
{% if request.user.is_staff %}
25+
<a role="button" class="button" href="{% url 'admin:downloads_release_change' release.pk %}">Edit this release</a>
26+
{% endif %}
2427

2528
<header class="article-header">
2629
<h1 class="page-title">{{ release.name }}</h1>

0 commit comments

Comments
 (0)