Skip to content

Commit

Permalink
show resources in nav of package for admin (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 18, 2021
1 parent c2854a3 commit d394cf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckanext/dcor_schemas/templates/package/edit_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

{% 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_access('sysadmin') %}
{{ h.build_nav_icon(pkg.type ~ '.resources', _('Resources'), id=pkg.name, icon='bars') }}
{% endif %}

{% 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 %}
Expand Down

0 comments on commit d394cf0

Please sign in to comment.