Sha256: 02c287f2c620157d013d079229b7b55300fa4373ccc877ff0bb98fd97b0eeca6
Contents?: true
Size: 854 Bytes
Versions: 23
Compression:
Stored size: 854 Bytes
Contents
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Logins By Week</h3> </div> <div class="panel-body"> <table class="table"> <tr> <th>Display Name</th> <% (1..study_length_in_weeks).each do |current_week| %> <th>week <%= current_week %></th> <% end %> </tr> <% counts = ParticipantMetrics::WeeklyLoginsCount.fetch(group.id).map { |l| [[l.participant_id, l.week], l.count] }.to_h %> <% group.non_moderator_memberships.each do | membership | %> <tr> <td><%= membership.participant.display_name %></td> <% (1..study_length_in_weeks).each do |current_week| %> <td><%= counts[[membership.participant_id, current_week]] || 0 %></td> <% end %> </tr> <% end %> </table> </div> </div>
Version data entries
23 entries across 23 versions & 1 rubygems