Sha256: dd3a3eed244af184dc380b0adf0e4f4523128646a2f2e4369ccf120f690727f2

Contents?: true

Size: 2 KB

Versions: 16

Compression:

Stored size: 2 KB

Contents

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

  <div id="goalsCollapse" class="panel-collapse collapse in">
    <div class="panel-body">
      <div class="table-responsive div-table-viz">
        <table class="table table-hover data-table" id="goals_data">
          <thead>
          <tr>
            <th class="not-displayed"></th>
            <th>Description</th>
            <th>Completed At</th>
            <th>Deleted At</th>
            <th>Due On</th>
            <th>Created Date</th>
            <th>Week</th>
            <th>Likes</th>
            <th>Comments</th>
          </tr>
          </thead>
          <tbody>

          <% membership.goals.each do |goal| %>
            <tr>
              <td class="not-displayed">
                <%= goal.created_at.to_i %>
              </td>
              <td><%= goal.description %></td>
              <td><%= goal.completed_at ? goal.completed_at.to_s(:standard) : "Incomplete" %></td>
              <td><%= goal.deleted_at ? goal.deleted_at.to_s(:standard) : "Not Deleted" %></td>
              <td><%= goal.due_on ? goal.due_on.to_s(:user_date) : content_tag(:span, "Unscheduled", class: "label label-warning") %></td>
              <td><%= goal.created_at.to_s(:standard) %></td>
              <td><%= week_in_study(goal.created_at, membership) %></td>
              <td><%= goal_like_count(goal) %></td>
              <td><%= goal.comments.count %></td>
            </tr>
          <% end %>

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
social_networking-0.13.3 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.13.2 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.13.1 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.13.0 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.12.0 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.8 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.7 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.6 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.5 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.4 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.3 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.2 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.1 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.11.0 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.10.0 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb
social_networking-0.9.3 app/views/social_networking/coach/patient_dashboards/tables/_goals.html.erb