mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
forgot the partial..
This commit is contained in:
parent
4498acb1d0
commit
915afa5f0a
1 changed files with 15 additions and 0 deletions
15
app/views/shared/_links.erb
Normal file
15
app/views/shared/_links.erb
Normal file
|
@ -0,0 +1,15 @@
|
|||
<%- unless current_page?(:controller => 'sessions') %>
|
||||
<%= link_to t('devise.sessions.sign_in'), new_session_path(resource_name) %><br />
|
||||
<% end -%>
|
||||
|
||||
<%- if devise_mapping.recoverable? && !current_page?(:controller => 'passwords') %>
|
||||
<%= link_to t('devise.passwords.recover'), new_password_path(resource_name) %><br />
|
||||
<% end -%>
|
||||
|
||||
<%- if devise_mapping.confirmable? && !current_page?(:controller => 'confirmations') %>
|
||||
<%= link_to t('devise.confirmations.confirm'), new_confirmation_path(resource_name) %><br />
|
||||
<% end -%>
|
||||
|
||||
<%- if devise_mapping.lockable? && !current_page?(:controller => 'unlocks') %>
|
||||
<%= link_to t('devise.unlocks.unlock'), new_unlock_path(resource_name) %><br />
|
||||
<% end -%>
|
Loading…
Add table
Reference in a new issue