Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Virtual/hidden teams are no longer counted for the "number of teams"-…
Browse files Browse the repository at this point in the history
…column under admin/users.

Fixes: #614

Signed-off-by: Jürgen Löhel <[email protected]>
  • Loading branch information
Jürgen Löhel committed Dec 4, 2015
1 parent 205d6fb commit 0272212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/users/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
i.fa.fa-lg[class="fa-toggle-#{user.admin? ? 'on': 'off'}"]

td= user.teams.reduce(0){ |sum, t| sum += t.namespaces.count}
td= user.teams.count
td= user.teams.all_non_special.count
td.enabled-btn
- if current_user.id == user.id && @admin_count == 1
i.fa.fa-lg.fa-toggle-on
Expand Down

0 comments on commit 0272212

Please sign in to comment.