Skip to content

Commit f369974

Browse files
authored
Add "Edit this release" button to release pages (#2843)
1 parent aff342d commit f369974

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)