Skip to content

Commit 92b283b

Browse files
committed
Remove "Remove" button from package page
1 parent 2baaeaa commit 92b283b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

app/templates/packages/view.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,11 @@ <h2>{% if review_thread.private %}&#x1f512;{% endif %} {{ review_thread.title }}
174174
</a>
175175
{% endif %}
176176
{% if package.check_perm(current_user, "MAKE_RELEASE") %}
177-
<a class="btn btn-primary" href="{{ package.get_url('packages.create_release') }}">
177+
<a class="btn btn-secondary" href="{{ package.get_url('packages.create_release') }}">
178178
<i class="fas fa-plus me-1"></i>
179179
{{ _("Release") }}
180180
</a>
181181
{% endif %}
182-
{% if package.check_perm(current_user, "DELETE_PACKAGE") or package.check_perm(current_user, "UNAPPROVE_PACKAGE") %}
183-
<a class="btn btn-danger" href="{{ package.get_url('packages.remove') }}">
184-
<i class="fas fa-trash me-1"></i>
185-
{{ _("Remove") }}
186-
</a>
187-
{% endif %}
188182
</div>
189183
<h1 class="my-4">{{ meta.title }}</h1>
190184
<div class="clearfix"></div>

0 commit comments

Comments
 (0)