Improve navigation
This commit is contained in:
parent
87a4732823
commit
7220262161
2 changed files with 10 additions and 10 deletions
|
@ -32,12 +32,12 @@
|
|||
role: :button,
|
||||
class: 'dropdown-item' %>
|
||||
|
||||
<% if user_signed_in? %>
|
||||
<%= link_to translate('users.shared.links.settings'),
|
||||
edit_user_registration_path,
|
||||
role: :button,
|
||||
class: 'dropdown-item' %>
|
||||
<%= link_to translate('users.shared.links.settings'),
|
||||
edit_settings_profile_path,
|
||||
role: :button,
|
||||
class: 'dropdown-item' %>
|
||||
|
||||
<% if user_signed_in? %>
|
||||
<div class="dropdown-divider"></div>
|
||||
|
||||
<%= link_to translate('users.shared.links.sign_out'),
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<div class="list-group">
|
||||
<%= link_to translate(:credentials, scope: %i[nav_tabs settings]),
|
||||
edit_user_registration_path,
|
||||
class: 'list-group-item list-group-item-action ' \
|
||||
"#{:active if tab == :credentials}" %>
|
||||
|
||||
<%= link_to translate(:profile, scope: %i[nav_tabs settings]),
|
||||
edit_settings_profile_path,
|
||||
class: 'list-group-item list-group-item-action ' \
|
||||
"#{:active if tab == :profile}" %>
|
||||
|
||||
<%= link_to translate(:credentials, scope: %i[nav_tabs settings]),
|
||||
edit_user_registration_path,
|
||||
class: 'list-group-item list-group-item-action ' \
|
||||
"#{:active if tab == :credentials}" %>
|
||||
|
||||
<%= link_to translate(:telegram_contacts, scope: %i[nav_tabs settings]),
|
||||
settings_telegram_contacts_path,
|
||||
class: 'list-group-item list-group-item-action '\
|
||||
|
|
Reference in a new issue