Sha256: 9726e77b3c75a13ef64d087d50c9af57635d80909232b66770c8c7ee2bb596bf

Contents?: true

Size: 1.24 KB

Versions: 20

Compression:

Stored size: 1.24 KB

Contents

<% if current_user && !current_user.remember_created_at %>
  <% timeout_time_seconds = Decidim.config.expire_session_after.to_i %>
  <% prevent_timeout_for = try(:prevent_timeout_seconds) || 0 %>
  <div class="reveal" id="timeoutModal" data-close-on-click="false" data-close-on-esc="false"
    data-seconds-until-timeout-path="<%= decidim.seconds_until_timeout_path %>"
    data-heartbeat-path="<%= decidim.heartbeat_path %>"
    data-session-timeout="<%= timeout_time_seconds %>"
    data-prevent-timeout-seconds="<%= prevent_timeout_for %>"
    data-session-timeout-interval="<%= Decidim.config.session_timeout_interval.to_i * 1000 %>" data-reveal>
    <h2><%= t(".title") %></h2>
    <p><%= t(".body", minutes: (timeout_time_seconds / 60) - 2) %></p>

    <div class="reveal__buttons">
      <%= link_to t(".sign_out"), decidim.destroy_user_session_path, method: :delete, class: "button warning" %>
      <%= link_to "", decidim.destroy_user_session_path(translation_suffix: :timed_out), method: :delete, id: "reveal-hidden-sign-out", class: "hide" %>
      <%= button_to t(".continue_session"),
        decidim.heartbeat_path,
        id: "continueSession",
        class: "button primary",
        remote: true,
        method: :post %>
    </div>
  </div>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.8 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.7 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.6 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.10 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.9 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.5 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.8 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.4 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.3 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.7 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.5 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.2 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.1 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.4 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.0 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.3 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.0.rc2 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.27.0.rc1 app/views/layouts/decidim/_timeout_modal.html.erb
decidim-core-0.26.2 app/views/layouts/decidim/_timeout_modal.html.erb