Skip to content

Commit

Permalink
hide resources in nav of package (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 18, 2021
1 parent 95ae9f4 commit c2854a3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ckanext/dcor_schemas/templates/package/edit_base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% ckan_extends %}

{% block content_primary_nav %}
{{ h.build_nav_icon(pkg.type ~ '.edit', _('Edit metadata'), id=pkg.name, icon='pencil-square-o') }}
{# {{ h.build_nav_icon(pkg.type ~ '.resources', _('Resources'), id=pkg.name, icon='bars') }} #}
{% if h.check_config_permission('allow_dataset_collaborators') and h.check_access('package_collaborator_create', {'id': pkg_dict.id}) %}
{{ h.build_nav_icon(pkg.type ~ '.collaborators_read', _('Collaborators'), id=pkg.name, icon='users')}}
{% endif %}
{% endblock %}

0 comments on commit c2854a3

Please sign in to comment.