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,
|
role: :button,
|
||||||
class: 'dropdown-item' %>
|
class: 'dropdown-item' %>
|
||||||
|
|
||||||
<% if user_signed_in? %>
|
|
||||||
<%= link_to translate('users.shared.links.settings'),
|
<%= link_to translate('users.shared.links.settings'),
|
||||||
edit_user_registration_path,
|
edit_settings_profile_path,
|
||||||
role: :button,
|
role: :button,
|
||||||
class: 'dropdown-item' %>
|
class: 'dropdown-item' %>
|
||||||
|
|
||||||
|
<% if user_signed_in? %>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
|
|
||||||
<%= link_to translate('users.shared.links.sign_out'),
|
<%= link_to translate('users.shared.links.sign_out'),
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<div class="list-group">
|
<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]),
|
<%= link_to translate(:profile, scope: %i[nav_tabs settings]),
|
||||||
edit_settings_profile_path,
|
edit_settings_profile_path,
|
||||||
class: 'list-group-item list-group-item-action ' \
|
class: 'list-group-item list-group-item-action ' \
|
||||||
"#{:active if tab == :profile}" %>
|
"#{: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]),
|
<%= link_to translate(:telegram_contacts, scope: %i[nav_tabs settings]),
|
||||||
settings_telegram_contacts_path,
|
settings_telegram_contacts_path,
|
||||||
class: 'list-group-item list-group-item-action '\
|
class: 'list-group-item list-group-item-action '\
|
||||||
|
|
Reference in a new issue