Skip to content

Commit

Permalink
Merge pull request #7432 from DataShades/fix-links-and-labels-on-dash…
Browse files Browse the repository at this point in the history
…board-org-page

Fix wrong links and labels on dashboard organization page
  • Loading branch information
kowh-ai committed Aug 22, 2023
2 parents 9956f92 + 73fff3d commit 921c61c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions changes/7432.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed links and labels on dashboard/organization page.
Empty file.
10 changes: 5 additions & 5 deletions ckan/templates/user/dashboard_organizations.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% extends "user/dashboard.html" %}

{% set group_type = h.default_group_type('organization') %}
{% set org_type = h.default_group_type('organization') %}

{% 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', org_type, 'add link') or _('Add Organization'), named_route=org_type ~ '.new', class_="btn btn-primary", icon="plus-square" %}
{% endif %}
{% endblock %}

{% block primary_content_inner %}
<h2 class="hide-heading">{{ h.humanize_entity_type('organization', group_type, 'my label') or _('My Organizations') }}</h2>
<h2 class="hide-heading">{{ h.humanize_entity_type('organization', org_type, 'my label') or _('My Organizations') }}</h2>
{% set organizations = h.organizations_available(permission='manage_group',
include_dataset_count=True,
include_member_count=True) %}
Expand All @@ -19,9 +19,9 @@ <h2 class="hide-heading">{{ h.humanize_entity_type('organization', group_type, '
</div>
{% else %}
<p class="empty">
{{ h.humanize_entity_type('organization', group_type, 'you not member') or _('You are not a member of any organizations.') }}
{{ h.humanize_entity_type('organization', org_type, 'you not member') or _('You are not a member of any organizations.') }}
{% if h.check_access('organization_create') %}
{% link_for _('Create one now?'), named_route=group_type ~ '.new' %}
{% link_for _('Create one now?'), named_route=org_type ~ '.new' %}
{% endif %}
</p>
{% endif %}
Expand Down

0 comments on commit 921c61c

Please sign in to comment.