Skip to content

Commit

Permalink
Fix and update display of not activated user total on global admin da…
Browse files Browse the repository at this point in the history
…shboard
  • Loading branch information
homeworkprod committed Sep 23, 2019
1 parent e36443f commit 274d78d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -22,7 +22,7 @@
{{ render_bigstats_cell(orga_count, 'Organisatoren', href=url_for('orga_admin.persons'), icon_name='users') }}
{{ render_bigstats_cell(user_count|separate_thousands, 'Benutzer', href=url_for('user_admin.index'), icon_name='users') }}
{{ render_bigstats_cell(recent_users_count, 'neue Benutzer in den letzten 7 Tagen', href=url_for('user_admin.index'), icon_name='users', color='#008800') }}
{{ render_bigstats_cell(disabled_user_count, 'deaktivierte Benutzer', href=url_for('user_admin.index', only='disabled'), icon_name='users', color='#cc0000') }}
{{ render_bigstats_cell(uninitialized_user_count, 'noch nicht aktivierte Benutzer', href=url_for('user_admin.index', only='disabled'), icon_name='users', color='#1199ff') }}
</div>

{%- endblock %}
4 changes: 2 additions & 2 deletions byceps/blueprints/admin/dashboard/views.py
Expand Up @@ -58,7 +58,7 @@ def view_global():
one_week_ago = timedelta(days=7)
recent_users_count = user_stats_service.count_users_created_since(one_week_ago)

disabled_user_count = user_stats_service.count_disabled_users()
uninitialized_user_count = user_stats_service.count_uninitialized_users()

orgas_with_next_birthdays = list(
orga_birthday_service.collect_orgas_with_next_birthdays(limit=3))
Expand All @@ -73,7 +73,7 @@ def view_global():

'user_count': user_count,
'recent_users_count': recent_users_count,
'disabled_user_count': disabled_user_count,
'uninitialized_user_count': uninitialized_user_count,

'orgas_with_next_birthdays': orgas_with_next_birthdays,
}
Expand Down

0 comments on commit 274d78d

Please sign in to comment.