Sha256: 3b5242e3cd04798df3aa23ce1b0d6f41122cae52d1ff7c68aeb1303569759f3c

Contents?: true

Size: 1.64 KB

Versions: 4

Compression:

Stored size: 1.64 KB

Contents

<ul class="list-inline text-center">
  <%- if controller_name != "sessions" %>
    <li class="list-inline-item">
      <%= link_to("Log in", new_session_path(resource_name), class: "nav-link") %>
    </li>
  <% end -%>

  <%- if Archangel.config.allow_registration && devise_mapping.registerable? && controller_name != "registrations" %>
    <li class="list-inline-item">
      <%= link_to("Sign up", new_registration_path(resource_name), class: "nav-link") %>
    </li>
  <% end -%>

  <%- if devise_mapping.recoverable? && controller_name != "passwords" && controller_name != "registrations" %>
    <li class="list-inline-item">
      <%= link_to("Forgot your password?", new_password_path(resource_name), class: "nav-link") %>
    </li>
  <% end -%>

  <%- if devise_mapping.confirmable? && controller_name != "confirmations" %>
    <li class="list-inline-item">
      <%= link_to("Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: "nav-link") %>
    </li>
  <% end -%>

  <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != "unlocks" %>
    <li class="list-inline-item">
      <%= link_to("Didn't receive unlock instructions?", new_unlock_path(resource_name), class: "nav-link") %>
    </li>
  <% end -%>
</ul>

<%- if devise_mapping.omniauthable? %>
  <ul class="nav justify-content-center">
    <%- resource_class.omniauth_providers.each do |provider| %>
      <li class="list-inline-item">
        <%= link_to("Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), class: "nav-link") %>
      </li>
    <% end -%>
  </ul>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
archangel-0.3.0 app/views/devise/shared/_links.html.erb
archangel-0.0.8 app/views/devise/shared/_links.html.erb
archangel-0.0.7 app/views/devise/shared/_links.html.erb
archangel-0.0.6 app/views/devise/shared/_links.html.erb