1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/settings/_nav_sidebar.html.erb

29 lines
1.2 KiB
Text

<div class="list-group">
<% if policy(%i[settings profile]).edit? %>
<%= 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}" %>
<% end %>
<% if policy(%i[users registration]).edit? %>
<%= 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}" %>
<% end %>
<% if policy(%i[settings account_telegram_contact]).index? %>
<%= link_to translate(:telegram_contacts, scope: %i[nav_tabs settings]),
settings_telegram_contacts_path,
class: 'list-group-item list-group-item-action ' \
"#{:active if tab == :telegram_contacts}" %>
<% end %>
<% if policy(%i[settings role]).index? %>
<%= link_to translate(:roles, scope: %i[nav_tabs settings]),
settings_roles_path,
class: 'list-group-item list-group-item-action ' \
"#{:active if tab == :roles}" %>
<% end %>
</div>