Skip to content

Commit

Permalink
Merge pull request ckan#8277 from blagojabozinovski/orgs_available
Browse files Browse the repository at this point in the history
Set orgs_available in user/read_group|organization templates
  • Loading branch information
wardi authored Jun 26, 2024
2 parents 1b58256 + 65734cc commit ef91cb4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckan/templates/user/read_groups.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "user/read_base.html" %}

{% set user = user_dict %}
{% set group_type = h.default_group_type('group') %}
{% set groups_available = h.groups_available(am_member=True,
include_dataset_count=True,
include_member_count=True,
user=user['name'])
%}

{% block primary_content_inner %}
<h2 class="hide-heading">{{ h.humanize_entity_type('group', group_type, 'facet label') or _('Groups') }}</h2>
Expand Down
6 changes: 6 additions & 0 deletions ckan/templates/user/read_organizations.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{% extends "user/read_base.html" %}

{% set user = user_dict %}
{% set group_type = h.default_group_type('organization') %}
{% set orgs_available = h.organizations_available(permission='manage_group',
include_dataset_count=True,
include_member_count=True,
user=user['name'])
%}

{% block primary_content_inner %}
<h2 class="hide-heading">{{ h.humanize_entity_type('organization', group_type, 'facet label') or _('Organizations') }}</h2>
Expand Down

0 comments on commit ef91cb4

Please sign in to comment.