Sha256: 6f30436d3825170528d2137d00f1029906b367f6b7fa6ff8a0ca39bc1ce396ea

Contents?: true

Size: 910 Bytes

Versions: 8

Compression:

Stored size: 910 Bytes

Contents

<h3><%= I18n.t('title', :scope => 'devise.otp.trusted_browsers') %></h3>
<p><%= I18n.t('explain', :scope => 'devise.otp.trusted_browsers') %></p>

<%- if is_otp_trusted_browser_for? resource %>
  <p><em><%= I18n.t('browser_trusted', :scope => 'devise.otp.trusted_browsers') %></em></p>
  <p><%= link_to I18n.t('trust_remove', :scope => 'devise.otp.trusted_browsers'), persistence_otp_token_path_for(resource_name), :method => :post, :data => { "turbo-method": "POST" } %></p>
<% else %>
  <p><%= I18n.t('browser_not_trusted', :scope => 'devise.otp.trusted_browsers') %></p>
  <p><%= link_to I18n.t('trust_add', :scope => 'devise.otp.trusted_browsers'), persistence_otp_token_path_for(resource_name) %></p>
<% end %>

<p><%= button_to I18n.t('trust_clear', :scope => 'devise.otp.trusted_browsers'), persistence_otp_token_path_for(resource_name), :method => :delete, :data => { "turbo-method": "DELETE" } %></p>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
devise-otp-1.0.0 app/views/devise/otp_tokens/_trusted_devices.html.erb
devise-otp-0.8.0 app/views/devise/otp_tokens/_trusted_devices.html.erb
devise-otp-0.7.1 app/views/devise/otp_tokens/_trusted_devices.html.erb
devise-otp-0.7.0 app/views/devise/otp_tokens/_trusted_devices.html.erb
devise-otp-0.6.0 app/views/devise/otp_tokens/_trusted_devices.html.erb
devise-otp-0.5.0 app/views/devise/otp_tokens/_trusted_devices.html.erb
devise-otp-0.4.0 app/views/devise/otp_tokens/_trusted_devices.html.erb
devise-otp-0.3.0 app/views/devise/tokens/_trusted_devices.html.erb