Sha256: 7d950c0e53dae2d33abbb9b479a4e9a7039a51806308e63576337d6bf681f917

Contents?: true

Size: 635 Bytes

Versions: 34

Compression:

Stored size: 635 Bytes

Contents

<% if current_user_impersonated? %>
  <div class="impersonation-warning" data-session-ends-at="<%= impersonation_session_ends_at.iso8601 %>">
    <%= t(".description_html", user_name: current_user.name) %>
    <%= t(".expire_time_html", minutes: impersonation_session_remaining_duration_in_minutes) %>
    <div class="impersonation-warning__action">
      <%= button_to t(".close_session"), decidim_admin.close_session_impersonatable_user_impersonations_path(current_user), class: "button tiny impersonation-bar__button", data: { disable: true } %>
    </div>
  </div>
  <%= javascript_include_tag "decidim/impersonation" %>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
decidim-core-0.19.0 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.17.2 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.18.0 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.17.1 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.16.1 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.17.0 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.16.0 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.15.2 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.15.1 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.15.0 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.14.4 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.14.3 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.14.2 app/views/layouts/decidim/_impersonation_warning.html.erb
decidim-core-0.14.1 app/views/layouts/decidim/_impersonation_warning.html.erb