mirror of https://github.com/CIRCL/AIL-framework
chg: [orgs list] show numbers of users
parent
6509b5d732
commit
cc7e67d5ed
|
@ -309,7 +309,7 @@ def check_acl_edit_level(obj, user_org, user_id, user_role, new_level):
|
||||||
|
|
||||||
def api_get_orgs_meta():
|
def api_get_orgs_meta():
|
||||||
meta = {'orgs': []}
|
meta = {'orgs': []}
|
||||||
options = {'date_created', 'description', 'name'}
|
options = {'date_created', 'description', 'name', 'nb_users'}
|
||||||
for org_uuid in get_orgs():
|
for org_uuid in get_orgs():
|
||||||
org = Organisation(org_uuid)
|
org = Organisation(org_uuid)
|
||||||
meta['orgs'].append(org.get_meta(options=options))
|
meta['orgs'].append(org.get_meta(options=options))
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
<th>uuid</th>
|
<th>uuid</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Created at</th>
|
<th>Created at</th>
|
||||||
|
<th>Nb Users</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -49,6 +50,7 @@
|
||||||
{{org['date_created']}}
|
{{org['date_created']}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
<td>{{org['nb_users']}}</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="d-flex justify-content-start">
|
<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']) }}">#}
|
{# <a class="btn btn-outline-primary ml-3 px-1 py-0" href="{{ url_for('settings_b.edit_user', org_uuid=org['uuid']) }}">#}
|
||||||
|
|
Loading…
Reference in New Issue