Skip to content

Commit

Permalink
Updated dashboard to display 'Collection' before 'Sample'. Removed 'A…
Browse files Browse the repository at this point in the history
…dd Group' and replaced it with 'Add Collection'.
  • Loading branch information
NTaherifar committed Jul 10, 2024
1 parent 63972cf commit 2db898e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block page_primary_action %}
{% if h.check_access('organization_create') %}
{% link_for h.humanize_entity_type('organization', group_type, 'add link') or _('Add Organization'), named_route=group_type ~ '.new', class_='btn btn-primary', icon='plus-square' %}
{% link_for h.humanize_entity_type('organization', 'organization', 'add link') or _('Add Organization'), named_route=group_type ~ '.new', class_='btn btn-primary', icon='plus-square' %}
{% else %}
{% if c.userobj %}
<a href="{{ h.url_for('igsn_theme.request_new_collection') }}" role="button" class="btn btn-primary"> {{ _('New Collection') }}</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@


{% block dashboard_nav_links %}
{{ h.build_nav_icon('dashboard.datasets', h.humanize_entity_type('package', dataset_type, 'my label') or _('My Datasets'), icon='sitemap') }}
{{ h.build_nav_icon('dashboard.organizations', h.humanize_entity_type('organization', org_type, 'my label') or _('My Organizations'), icon='building') }}
{{ h.build_nav_icon('dashboard.datasets', h.humanize_entity_type('package', dataset_type, 'my label') or _('My Datasets'), icon='sitemap') }}
{% endblock dashboard_nav_links %}
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{% ckan_extends %}


{% block page_primary_action %}
{% if h.check_access('organization_create') %}
{% set group_type = 'organization' %}
{% link_for h.humanize_entity_type('organization', group_type, 'add link') or _('Add Organization'), named_route=group_type ~ '.new', class_='btn btn-primary', icon='plus-square' %}
{% else %}
{% if c.userobj %}
Expand Down

0 comments on commit 2db898e

Please sign in to comment.