2021-01-05 16:11:05 +08:00
|
|
|
<%= content_for :sidebar_title, t('sidebar.settings.sidebar_title') %>
|
2018-04-05 22:30:02 +08:00
|
|
|
<%= content_for :sidebar do %>
|
2021-01-05 16:11:05 +08:00
|
|
|
<ul class="sidebar-branch" data-hook="user-settings-navigation-html">
|
|
|
|
<li class="sidebar-leaf" >
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.profile"),
|
|
|
|
edit_user_registration_path,
|
|
|
|
class: "sidebar-link #{'selected' if on_settings_account_profile_page?}"
|
|
|
|
%>
|
|
|
|
</li>
|
|
|
|
<li class="sidebar-leaf" >
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.preferences"),
|
|
|
|
preferences_path,
|
|
|
|
class: "sidebar-link #{'selected' if on_settings_account_preferences_page?}"
|
|
|
|
%>
|
|
|
|
</li>
|
|
|
|
<li class="sidebar-leaf" >
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.addons"),
|
|
|
|
addons_path,
|
|
|
|
class: "sidebar-link #{'selected' if on_settings_account_addons_page?}"
|
|
|
|
%>
|
|
|
|
</li>
|
|
|
|
<li class="sidebar-leaf" >
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.connected_accounts"),
|
|
|
|
connected_accounts_path,
|
|
|
|
class: "sidebar-link #{'selected' if on_settings_account_connected_accounts_page?}"
|
|
|
|
%>
|
|
|
|
</li>
|
|
|
|
<li class="delimiter"></li>
|
2021-08-19 20:23:53 +08:00
|
|
|
<li class="sidebar-leaf teams-link" >
|
2021-01-05 16:11:05 +08:00
|
|
|
<%= link_to t("users.settings.sidebar.teams"),
|
|
|
|
teams_path,
|
|
|
|
class: "sidebar-link #{'selected' if on_settings_team_page?}"
|
|
|
|
%>
|
|
|
|
</li>
|
2021-06-03 20:00:43 +08:00
|
|
|
|
2021-08-19 18:04:52 +08:00
|
|
|
<% if can_create_acitivity_filters? %>
|
|
|
|
<li class="sidebar-leaf" >
|
|
|
|
<%= link_to t("users.settings.sidebar.webhooks"),
|
|
|
|
users_settings_webhooks_path,
|
|
|
|
class: "sidebar-link #{'selected' if on_settings_webhook_page?}"
|
|
|
|
%>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2021-01-05 16:11:05 +08:00
|
|
|
</ul>
|
2018-04-05 22:30:02 +08:00
|
|
|
<% end %>
|