Sha256: b2c83642fc5ba430c11f8604cdc4839b352d4aa5cbc9f012d2b9a741bacb2fae

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

<h1>Please enter the code word to continue&hellip;</h1>

<% if @wrong %>
  <div class="hmm">
    <h3>Hmm&hellip; that doesn&#8217;t seem right. Try again?</h3>
  </div>
<% end %>

<%= form_for :lockup, url: { action: 'unlock' } do |form| %>
  <% unless @wrong == true %>
    <p><%= form.password_field "codeword", placeholder: "code word" %></p>
  <% else %>
    <p><%= form.password_field "codeword", value: @codeword, class: 'nope' %></p>
  <% end %>
    
  <% if ENV["LOCKUP_HINT"].present? || ((Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR >= 1) && Rails.application.secrets.lockup_hint.present?) %>
    <p id='hint_icon'>?</p>
    <p id='hint'><%= ENV["LOCKUP_HINT"].present? ? ENV["LOCKUP_HINT"] : Rails.application.secrets.lockup_hint %></p>
  <% end %>

  <% if params[:return_to].present? %>
    <%= form.hidden_field "return_to", value: params[:return_to] %>
  <% elsif @return_to.present? %>
    <%= form.hidden_field "return_to", value: @return_to %>
  <% end %>
    
  <p><%= button_tag "Go" %></p>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lockup-1.3.1 app/views/lockup/lockup/unlock.html.erb