Browse Source

Add participant counts to subgroups

Maarten van den Berg 7 years ago
parent
commit
e70260ad2b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/views/activities/edit.html.haml

+ 4 - 1
app/views/activities/edit.html.haml

@@ -83,7 +83,10 @@
83 83
             %i.fa.fa-cogs
84 84
         - @subgroups.each do |sg|
85 85
           %tr
86
-            %td= sg.name
86
+            %td
87
+              = sg.name
88
+              = surround '(', ')' do
89
+                = sg.participants.count
87 90
             %td
88 91
               = link_to group_activity_update_subgroup_path(@group, @activity, sg.id, 'subgroup[is_assignable]' => !sg.is_assignable), method: :patch, class: 'btn btn-default btn-xs' do
89 92
                 - if sg.is_assignable