Sha256: d91f4c7d6cdcd5e552e588b23dd5cc7b2098069924300de5f81f6388ba647bb1
Contents?: true
Size: 1.94 KB
Versions: 68
Compression:
Stored size: 1.94 KB
Contents
<div class="panel panel-default cdb_panel" id="on-my-mind-container"> <div class="panel-heading"> <h3 class="panel-title adjusted-panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#on-my-mindCollapse"> On-My-Mind Statements </a> </h3> </div> <div id="on-my-mindCollapse" class="panel-collapse collapse in"> <div class="panel-body"> <div class="table-responsive div-table-viz"> <table class="table table-hover data-table" id="on-my-mind_data"> <thead> <tr> <th class="not-displayed"></th> <th>Display Name</th> <th>Description</th> <th>Created</th> <th>Week</th> <th>Likes</th> <th>Comments</th> </tr> </thead> <tbody> <% group.memberships.each do |membership| %> <% SocialNetworking::OnTheMindStatement.where(participant: membership.participant).each do |statement| %> <tr> <td class="not-displayed"> <%= statement.created_at ? statement.created_at.to_i : 0 %> </td> <td><%= membership.participant.display_name %></td> <td><%= statement.description %></td> <td><%= statement.created_at.to_s(:standard) %></td> <td><%= week_in_study(statement.created_at, membership) %></td> <td><%= statement.likes.all.count %></td> <td><%= statement.comments.all.count %></td> </tr> <% end %> <% end %> </tbody> </table> </div> </div> </div> </div> <script> $(function () { return $('#on-my-mind_data').dataTable({ order: [[0, "desc"]], columnDefs: [ { targets: [0], visible: false }, { targets: [3], orderData: [0] } ] }); }); </script>
Version data entries
68 entries across 68 versions & 1 rubygems