Sha256: 1512468f139cea22e164ee55b715aebc272419828e647fa92569c01afd54258b

Contents?: true

Size: 1.8 KB

Versions: 24

Compression:

Stored size: 1.8 KB

Contents

<div class="panel panel-default cdb_panel" id="likes-container">
  <div class="panel-heading">
    <h3 class="panel-title adjusted-panel-title">
      <a data-toggle="collapse" data-parent="#accordion" href="#likesCollapse">
        Likes
      </a>
    </h3>
  </div>

  <div id="likesCollapse" class="panel-collapse collapse in">
    <div class="panel-body">
      <div class="table-responsive div-table-viz">
        <table class="table table-hover data-table" id="likes_data">
          <thead>
          <tr>
            <th class="not-displayed"></th>
            <th>Display Name</th>
            <th>Item Type</th>
            <th>Item Description</th>
            <th>Created At</th>
            <th>Week in Study</th>
          </tr>
          </thead>
          <tbody>

          <% group.non_moderator_memberships.includes(:participant).each do |membership| %>
            <% membership_likes(membership).each do |like| %>
              <tr>
                <td class="not-displayed">
                  <%= like.created_at ? like.created_at.to_i : 0 %>
                </td>
                <td><%= membership.participant.display_name %></td>
                <td><%= like.item_type %></td>
                <td><%= like.item_description %></td>
                <td><%= like.created_at ? like.created_at.to_s(:standard) : "---" %></td>
                <td><%= week_in_study(like.created_at, membership) %></td>
              </tr>
            <% end %>
          <% end %>

          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<script>
  $(function () {
    return $('#likes_data').dataTable({
      order: [[0, "desc"]],
      columnDefs: [
        {
          targets: [0],
          visible: false
        },
        {
          targets: [4],
          orderData: [0]
        }
      ]
    });
  });
</script>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/coach/group_dashboard/_likes.html.erb