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
2019-09-03 22:08:03 +05:00

28 lines
586 B
Text

<%= nav_sidebar(
:settings,
tab,
profile: [
policy(%i[settings profile]).edit?,
edit_settings_profile_path,
],
credentials: [
policy(%i[users registration]).edit?,
edit_user_registration_path,
],
appearance: [
policy(%i[settings appearance]).edit?,
edit_settings_appearance_path,
],
person: [
policy(%i[settings person]).show?,
settings_person_path,
],
contacts: [
policy(%i[settings contact]).index?,
settings_contacts_path,
],
sessions: [
policy(%i[settings session]).index?,
settings_sessions_path,
],
) %>