1
0
Fork 0

Improve navigation

This commit is contained in:
Alex Kotov 2019-02-02 04:24:58 +05:00
parent 87a4732823
commit 7220262161
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 10 additions and 10 deletions

View file

@ -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'),

View file

@ -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 '\