|
@@ -10,9 +10,12 @@
|
10
|
10
|
<li>Deadline: <%= @activity.deadline %></li>
|
11
|
11
|
</ul>
|
12
|
12
|
|
13
|
|
-<h2>Participants (<%= @activity.participants.count %> <%= render partial: "state_counts", locals: {counts:@activity.state_counts}%>)</h2>
|
|
13
|
+<h2>
|
|
14
|
+ <%= @num_participants %> participants
|
|
15
|
+ <%= render partial: "state_counts", locals: {counts:@counts}%>
|
|
16
|
+</h2>
|
14
|
17
|
<table class="table table-bordered">
|
15
|
|
- <% @activity.participants.each do |p| %>
|
|
18
|
+ <% @participants.each do |p| %>
|
16
|
19
|
<tr class="<%= p.row_class %>" data-person-id="<%= p.person.id %>" data-activity-id="<%= @activity.id %>">
|
17
|
20
|
<td>
|
18
|
21
|
<%= p.person.full_name %>
|