Sha256: b6abc6438f8ef5441fb8f159f18b7c50e44df400378f8c7b71f4f295a3e23832

Contents?: true

Size: 1.47 KB

Versions: 54

Compression:

Stored size: 1.47 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? %>
          <%= 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

54 entries across 54 versions & 1 rubygems

Version Path
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.2 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.1 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.19.0 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.18.0 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.17.2 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.17.1 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.17.0 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.16.3 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.16.2 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.16.1 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.15.7 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.16.0 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.15.6 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
think_feel_do_engine-3.15.5 app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb