Skip to content

Commit

Permalink
Merge pull request #7814 from JVickery-TBS/feature/no-show-resource-a…
Browse files Browse the repository at this point in the history
…ctivity-edit

Hide Add New Resource Button While Viewing History
  • Loading branch information
wardi committed Sep 26, 2023
2 parents 487baa3 + da5ca16 commit 76b929a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/7814.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hide `Add new resource` button in the resource list while viewing activity history.
2 changes: 1 addition & 1 deletion ckan/templates/package/snippets/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2 class="module-heading"><i class="fa fa-bars"></i> {{ _("Resources") }}</h2>
{% endblock %}
{% endif %}

{% if can_edit %}
{% if can_edit and not is_activity_archive %}
<div class="module-content">
{% link_for _('Add new resource'), named_route=pkg.type ~ '_resource.new', id=pkg.name, class_='btn btn-light btn-sm', icon='plus' %}
</div>
Expand Down

0 comments on commit 76b929a

Please sign in to comment.