Sha256: ff44c693d54f765a04a48bb785e62272b603dc1871249fc2669290f3297fa034

Contents?: true

Size: 1.51 KB

Versions: 14

Compression:

Stored size: 1.51 KB

Contents

<div class="col-lg-6">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">
        Login Info
      </h3>
    </div>

    <div class="panel-body">
      <p>
        <strong>Last Logged In:</strong>
        <%= @participant.current_sign_in_at ? @participant.current_sign_in_at.to_s(:standard_with_day_of_week) : "Never Logged In" %>
      </p>

      <p>
        <strong>Logins Today:</strong>
        <%= view_membership(@participant, @group).logins_today.count %>
      </p>

      <p>
        <strong>Logins during this treatment week:</strong>
        <%= view_membership(@participant, @group)
            .logins_by_week(view_membership(@participant, @group)
              .week_in_study(Date.today)) %>
      </p>

      <p>
        <strong>Total Logins:</strong>
        <%= @participant.sign_in_count %>
      </p>

      <p>
        <strong>Last Activity Detected At:</strong>
        <% if @participant.events.any? %>
          <%= @participant.latest_action_at.to_s(:standard_with_day_of_week) %>
        <% else %>
          Participant has no events to report.
       <% end %>
      </p>

      <p>
        <strong>Duration of Last Session:</strong>
        <% if @participant.events.any? && @participant.duration_of_last_session %>
          <%= distance_of_time_in_words(0, @participant.duration_of_last_session, include_seconds: true) %>
        <% else %>
          Not available because participant has no events to report.
        <% end %>
      </p>
    </div>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb