Sha256: d7aefdc1f0a0037767473ffa27a11d3477d1f8389e9721712d6c0a9de6cd3a10

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

<ul class="nav justify-content-center">
  <%- if controller_name != "sessions" %>
    <li class="nav-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="nav-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="nav-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="nav-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="nav-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="nav-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.0.5 app/views/devise/shared/_links.html.erb
archangel-0.0.4 app/views/devise/shared/_links.html.erb
archangel-0.0.3 app/views/devise/shared/_links.html.erb
archangel-0.0.2 app/views/devise/shared/_links.html.erb