scinote-web/app/views/shared/_left_menu_bar.html.erb

68 lines
2.9 KiB
Plaintext
Raw Normal View History

2018-03-14 21:33:34 +08:00
<div id="left-menu-bar" class="menu-bar">
<ul class="nav">
<li class="<%= "active" if projects_are_selected? %>">
2018-03-26 18:11:59 +08:00
<%= link_to projects_path, id: "projects-link", class: "toggle-sidebar-link", title: t('left_menu_bar.projects') do %>
2018-03-14 21:33:34 +08:00
<span class="glyphicon glyphicon-home"></span>
<span><%= t('left_menu_bar.projects') %></span>
2018-03-26 18:11:59 +08:00
<% end %>
2018-03-14 21:33:34 +08:00
</li>
<li class="<%= "active" if repositories_are_selected? %>">
2018-03-26 18:11:59 +08:00
<%= link_to team_repositories_path(current_team), id: "repositories-link", title: t('left_menu_bar.repositories') do %>
2018-03-14 21:33:34 +08:00
<span class="fa fa-cubes" aria-hidden="true"></span>
<span><%= t('left_menu_bar.repositories') %></span>
2018-03-26 18:11:59 +08:00
<% end %>
2018-03-14 21:33:34 +08:00
</li>
<li class="<%= "active" if templates_are_selected? %>">
2018-03-26 18:11:59 +08:00
<%= link_to protocols_path, id: "templates-link", title: t('left_menu_bar.templates') do %>
2018-03-14 21:33:34 +08:00
<span class="glyphicon glyphicon-list-alt"></span>
<span><%= t('left_menu_bar.templates') %></span>
2018-03-26 18:11:59 +08:00
<% end %>
2018-03-14 21:33:34 +08:00
</li>
<li class="<%= "active" if reports_are_selected? %>">
2018-03-26 18:11:59 +08:00
<%= link_to "#", id: "reports-link", title: t('left_menu_bar.reports') do %>
2018-03-14 21:33:34 +08:00
<span class="glyphicon glyphicon-indent-left"></span>
<span><%= t('left_menu_bar.reports') %></span>
2018-03-26 18:11:59 +08:00
<% end %>
2018-03-14 21:33:34 +08:00
</li>
<li class="<%= "active" if settings_are_selected? %>">
2018-03-26 18:11:59 +08:00
<%= link_to edit_user_registration_path, id: "settings-link", title: t('left_menu_bar.settings') do %>
2018-03-14 21:33:34 +08:00
<span class="glyphicon glyphicon-cog"></span>
<span><%= t('left_menu_bar.settings') %></span>
2018-03-26 18:11:59 +08:00
<% end %>
2018-03-14 21:33:34 +08:00
</li>
</ul>
<ul class="nav nav-bottom">
<li class="<%= "active" if activities_are_selected? %>">
2018-03-26 18:11:59 +08:00
<%= link_to activities_path, id: "activities-link", title: t('left_menu_bar.activities') do %>
2018-03-14 21:33:34 +08:00
<span class="glyphicon glyphicon-equalizer"></span>
<span><%= t('left_menu_bar.activities') %></span>
2018-03-26 18:11:59 +08:00
<% end %>
2018-03-14 21:33:34 +08:00
</li>
2018-03-23 22:56:38 +08:00
<!-- support -->
<li class="dropup">
<a href="#"
2018-03-23 22:56:38 +08:00
id="support-link"
class="dropdown-toggle"
2018-03-23 22:56:38 +08:00
title="<%= t('left_menu_bar.support') %>"
data-toggle="dropdown"
role="button"
aria-haspopup="true"
aria-expanded="false">
2018-03-14 21:33:34 +08:00
<span class="glyphicon glyphicon-paperclip"></span>
2018-03-23 22:56:38 +08:00
<span><%= t('left_menu_bar.support') %></span>
2018-03-14 21:33:34 +08:00
</a>
<ul class="dropdown-menu">
2018-03-23 22:56:38 +08:00
<li><%= link_to t('left_menu_bar.support_links.support'),
Constants::SUPPORT_URL,
target: "_blank" %></li>
2018-03-23 22:56:38 +08:00
<li><%= link_to t('left_menu_bar.support_links.tutorials'),
Constants::TUTORIALS_URL,
target: "_blank" %></li>
2018-03-23 22:56:38 +08:00
<li><%= link_to t('left_menu_bar.support_links.webinars'),
Constants::WEBINARS_URL,
target: "_blank" %></li>
</ul>
2018-03-14 21:33:34 +08:00
</li>
</ul>
</div>