2018-04-05 22:30:02 +08:00
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<div id="slide-panel" class="visible">
|
|
|
|
<div class="tree">
|
2020-02-28 21:03:08 +08:00
|
|
|
<ul id="settings" class="sidebar-root" data-hook="user-settings-navigation-html">
|
2018-04-05 22:30:02 +08:00
|
|
|
<!-- Account -->
|
2020-02-28 21:03:08 +08:00
|
|
|
<li class="parent_li branch" >
|
2018-04-05 22:30:02 +08:00
|
|
|
<span class="tree-link line-wrap no-indent">
|
2018-04-09 16:53:03 +08:00
|
|
|
<i title="<%= t('sidebar.branch_expand') %>"
|
2020-02-28 21:03:08 +08:00
|
|
|
class="fas fa-caret-right tree-toggle"
|
2018-04-05 22:30:02 +08:00
|
|
|
aria-hidden="true"
|
2020-02-28 21:03:08 +08:00
|
|
|
></i>
|
2018-04-05 22:30:02 +08:00
|
|
|
<%= link_to t("users.settings.sidebar.account"),
|
|
|
|
edit_user_registration_path,
|
2020-02-28 21:03:08 +08:00
|
|
|
class: "line-wrap",
|
|
|
|
style: (on_settings_account_page? ? 'font-weight: bold' : ''),
|
2018-04-05 22:30:02 +08:00
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
</span>
|
|
|
|
|
2020-02-28 21:03:08 +08:00
|
|
|
<ul class="tree-child hidden accountNavigation" data-active="<%= on_settings_account_page? %>" data-hook="user-settings-account-navigation-html">
|
|
|
|
<li class="leaf <%= 'active' if on_settings_account_profile_page? %>" >
|
|
|
|
<span class="tree-link first-indent">
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.profile"),
|
2018-04-05 22:30:02 +08:00
|
|
|
edit_user_registration_path,
|
2020-02-28 21:03:08 +08:00
|
|
|
class: "line-wrap #{'disabled' if on_settings_account_profile_page?}",
|
2018-04-05 22:30:02 +08:00
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
</span>
|
|
|
|
</li>
|
2020-02-28 21:03:08 +08:00
|
|
|
<li class="leaf <%= 'active' if on_settings_account_preferences_page? %>" >
|
|
|
|
<span class="tree-link first-indent">
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.preferences"),
|
2018-04-05 22:30:02 +08:00
|
|
|
preferences_path,
|
2020-02-28 21:03:08 +08:00
|
|
|
class: "line-wrap #{'disabled' if on_settings_account_preferences_page?}",
|
2018-04-05 22:30:02 +08:00
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
</span>
|
|
|
|
</li>
|
2020-02-28 21:03:08 +08:00
|
|
|
<li class="leaf <%= 'active' if on_settings_account_addons_page? %>" >
|
|
|
|
<span class="tree-link first-indent">
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.addons"),
|
2018-04-05 22:30:02 +08:00
|
|
|
addons_path,
|
2020-02-28 21:03:08 +08:00
|
|
|
class: "line-wrap #{'disabled' if on_settings_account_addons_page?}",
|
2018-04-05 22:30:02 +08:00
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
2019-11-28 06:16:25 +08:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<!-- Connected accounts -->
|
2020-02-28 21:03:08 +08:00
|
|
|
<li class="leaf <%= 'active' if on_settings_account_connected_accounts_page? %>" >
|
|
|
|
<span class="tree-link first-indent">
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.connected_accounts"),
|
2019-11-28 06:16:25 +08:00
|
|
|
connected_accounts_path,
|
2020-02-28 21:03:08 +08:00
|
|
|
class: "line-wrap #{'disabled' if on_settings_account_connected_accounts_page?}",
|
2019-11-28 06:16:25 +08:00
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
2018-04-05 22:30:02 +08:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- Teams -->
|
2020-02-28 21:03:08 +08:00
|
|
|
<li class="branch <%= 'active' if on_settings_team_page? %>" >
|
|
|
|
<span class="tree-link no-indent">
|
2018-04-05 22:30:02 +08:00
|
|
|
<%= link_to t("users.settings.sidebar.teams"),
|
|
|
|
teams_path,
|
2020-02-28 21:03:08 +08:00
|
|
|
class: "line-wrap #{'all-teams-navigation-link' if on_settings_team_page?}",
|
2018-04-05 22:30:02 +08:00
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|