2018-04-05 22:30:02 +08:00
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<div id="slide-panel" class="visible">
|
|
|
|
<div class="tree">
|
2018-05-18 16:41:32 +08:00
|
|
|
<ul id="settings" data-hook="user-settings-navigation-html">
|
2018-04-05 22:30:02 +08:00
|
|
|
<!-- Account -->
|
|
|
|
<li class="parent_li" >
|
|
|
|
<span class="tree-link line-wrap no-indent">
|
2018-04-09 16:53:03 +08:00
|
|
|
<i title="<%= t('sidebar.branch_expand') %>"
|
2018-07-09 19:13:44 +08:00
|
|
|
class="fas fa-caret-right triangleRight"
|
2018-04-05 22:30:02 +08:00
|
|
|
aria-hidden="true"
|
|
|
|
style="<%= 'display: none;' if on_settings_account_page? %>"
|
|
|
|
></i>
|
2018-04-09 16:53:03 +08:00
|
|
|
<i title="<%= t('sidebar.branch_collapse') %>"
|
2018-07-09 19:13:44 +08:00
|
|
|
class="fas fa-caret-right expanded triangleDown"
|
2018-04-05 22:30:02 +08:00
|
|
|
aria-hidden="true"
|
|
|
|
style="<%= 'display: none;' unless on_settings_account_page? %>"
|
|
|
|
></i>
|
2018-04-06 20:20:40 +08:00
|
|
|
<% account_style = 'font-weight: bold;' if on_settings_account_page? %>
|
2018-04-05 22:30:02 +08:00
|
|
|
<%= link_to t("users.settings.sidebar.account"),
|
|
|
|
edit_user_registration_path,
|
2018-04-06 20:20:40 +08:00
|
|
|
style: account_style,
|
2018-04-05 22:30:02 +08:00
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
</span>
|
|
|
|
|
2018-04-06 20:20:40 +08:00
|
|
|
<ul class="accountNavigation" data-hook="user-settings-account-navigation-html" style="<%= 'display: none;' unless on_settings_account_page? %>">
|
|
|
|
<li class="<%= 'active' if on_settings_account_profile_page? %>" >
|
2018-04-05 22:30:02 +08:00
|
|
|
<span class="tree-link line-wrap first-indent">
|
|
|
|
<% if on_settings_account_profile_page? %>
|
|
|
|
<span title="<%= t("users.settings.sidebar.account_nav.profile") %>"><%= t("users.settings.sidebar.account_nav.profile") %></span>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.profile"),
|
|
|
|
edit_user_registration_path,
|
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</li>
|
2018-04-06 20:20:40 +08:00
|
|
|
<li class="<%= 'active' if on_settings_account_preferences_page? %>" >
|
2018-04-05 22:30:02 +08:00
|
|
|
<span class="tree-link line-wrap first-indent">
|
|
|
|
<% if on_settings_account_preferences_page? %>
|
|
|
|
<span title="<%= t("users.settings.sidebar.account_nav.preferences") %>"><%= t("users.settings.sidebar.account_nav.preferences") %></span>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.preferences"),
|
|
|
|
preferences_path,
|
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</li>
|
2018-04-06 20:20:40 +08:00
|
|
|
<li class="<%= 'active' if on_settings_account_addons_page? %>" >
|
2018-04-05 22:30:02 +08:00
|
|
|
<span class="tree-link line-wrap first-indent">
|
|
|
|
<% if on_settings_account_addons_page? %>
|
|
|
|
<span title="<%= t("users.settings.sidebar.account_nav.addons") %>"><%= t("users.settings.sidebar.account_nav.addons") %></span>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t("users.settings.sidebar.account_nav.addons"),
|
|
|
|
addons_path,
|
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- Teams -->
|
2018-04-06 20:20:40 +08:00
|
|
|
<li class="<%= 'active' if on_settings_team_page? %>" >
|
2018-04-05 22:30:02 +08:00
|
|
|
<span class="tree-link line-wrap no-indent">
|
|
|
|
<% if on_settings_team_page? %>
|
2018-06-26 19:09:56 +08:00
|
|
|
<span title="<%= t("users.settings.sidebar.teams") %>">
|
|
|
|
<%= link_to t("users.settings.sidebar.teams"),
|
|
|
|
teams_path,
|
|
|
|
data: { 'no-turbolink' => 'true' },
|
|
|
|
class: 'all-teams-navigation-link' %>
|
|
|
|
</span>
|
2018-04-05 22:30:02 +08:00
|
|
|
<% else %>
|
|
|
|
<%= link_to t("users.settings.sidebar.teams"),
|
|
|
|
teams_path,
|
|
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<script>
|
2018-07-19 23:56:42 +08:00
|
|
|
$('#wrapper').show();
|
2018-04-05 22:30:02 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<%= javascript_include_tag("users/settings/list_toggle") %>
|