scinote-web/app/views/users/settings/_sidebar.html.erb

70 lines
3.3 KiB
Text
Raw Normal View History

<%= 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">
<!-- Account -->
2020-02-28 21:03:08 +08:00
<li class="parent_li branch" >
<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"
aria-hidden="true"
2020-02-28 21:03:08 +08:00
></i>
<%= 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' : ''),
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"),
edit_user_registration_path,
2020-02-28 21:03:08 +08:00
class: "line-wrap #{'disabled' if on_settings_account_profile_page?}",
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"),
preferences_path,
2020-02-28 21:03:08 +08:00
class: "line-wrap #{'disabled' if on_settings_account_preferences_page?}",
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"),
addons_path,
2020-02-28 21:03:08 +08:00
class: "line-wrap #{'disabled' if on_settings_account_addons_page?}",
data: { 'no-turbolink' => 'true' } %>
</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"),
connected_accounts_path,
2020-02-28 21:03:08 +08:00
class: "line-wrap #{'disabled' if on_settings_account_connected_accounts_page?}",
data: { 'no-turbolink' => 'true' } %>
</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">
<%= 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?}",
data: { 'no-turbolink' => 'true' } %>
</span>
</li>
</ul>
</div>
</div>
<% end %>