Sha256: 1dcac3c27e973a379aa4ee620324376278860a7e672330d8e71186a186da27e3

Contents?: true

Size: 1.15 KB

Versions: 68

Compression:

Stored size: 1.15 KB

Contents

<% if can? :show, patient %>
  <tr id="patient-<%= patient.id %>"
      class="<%= 'inactive' if view_membership(patient, @group) &&
              view_membership(patient, @group).end_date < Date.current %>
              <%= 'danger' if patient.phq_assessments.last.try(:suicidal?) %>" data-study-id="<%= patient.study_id %>">
    <td>
      <%= link_to patient.study_id, coach_group_patient_dashboard_path(@group, patient) %>
    </td>

    <td class="unread">
      <%= current_user.received_messages.sent_from(patient.id).unread.count %>
    </td>

    <td>
      <%= !view_membership(patient, @group).is_complete ? "Withdrawn " +
        view_membership(patient, @group).end_date.to_s(:user_date) :
              "Discontinued " + view_membership(patient, @group).end_date.to_s(:user_date)  %>
    </td>

    <td>
      <%= patient.sign_in_count %>
    </td>

    <td>
      <%= patient.current_sign_in_at ? patient.current_sign_in_at.to_s(:standard) : "Never Logged In" %>
    </td>

    <td>
      <% if view_membership(patient, @group).stepped_on %>
        <%= view_membership(patient, @group).stepped_on.to_s(:user_date) %>
      <% end %>
    </td>
  </tr>
<% end %>

Version data entries

68 entries across 68 versions & 1 rubygems

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