<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,
"#{:active if tab == :credentials}" %>
</div>