Skip to content

Commit

Permalink
chg: [orgs list] show numbers of users
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Sep 17, 2024
1 parent 6509b5d commit cc7e67d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lib/ail_orgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def check_acl_edit_level(obj, user_org, user_id, user_role, new_level):

def api_get_orgs_meta():
meta = {'orgs': []}
options = {'date_created', 'description', 'name'}
options = {'date_created', 'description', 'name', 'nb_users'}
for org_uuid in get_orgs():
org = Organisation(org_uuid)
meta['orgs'].append(org.get_meta(options=options))
Expand Down
2 changes: 2 additions & 0 deletions var/www/templates/settings/orgs_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h3>AIL Organisations:</h3>
<th>uuid</th>
<th>Description</th>
<th>Created at</th>
<th>Nb Users</th>
<th>Actions</th>
</tr>
</thead>
Expand All @@ -49,6 +50,7 @@ <h3>AIL Organisations:</h3>
{{org['date_created']}}
{% endif %}
</td>
<td>{{org['nb_users']}}</td>
<td>
<div class="d-flex justify-content-start">
{# <a class="btn btn-outline-primary ml-3 px-1 py-0" href="{{ url_for('settings_b.edit_user', org_uuid=org['uuid']) }}">#}
Expand Down

0 comments on commit cc7e67d

Please sign in to comment.