Skip to content

Commit

Permalink
Add groups_available to read user groups template
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Jun 25, 2024
1 parent 0270dd4 commit 65734cc
Showing 1 changed file with 6 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

0 comments on commit 65734cc

Please sign in to comment.