mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
45 lines
1.4 KiB
Text
45 lines
1.4 KiB
Text
<%= content_for :sidebar do %>
|
|
<div id="slide-panel" class="visible">
|
|
|
|
<div class="sidebar-header">
|
|
<div class="sidebar-header-title">
|
|
<h5><%=t "sidebar.title" %></h5>
|
|
</div>
|
|
</div>
|
|
<div class="sidebar-header-toggle">
|
|
<a href="" id="toggle-sidebar-link">
|
|
<span class="glyphicon glyphicon-play-circle"></span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="tree">
|
|
<ul>
|
|
<li class="<%= "active" if not is_module_page? %>">
|
|
<span class="tree-link line-wrap">
|
|
<i></i>
|
|
<% if is_module_page? %>
|
|
<%= link_to @project.name, project_action_to_link_to(@project), title: @project.name %>
|
|
<% else %>
|
|
<span title="<%= @project.name %>"><%= @project.name %></span>
|
|
<% end %>
|
|
</span>
|
|
<ul>
|
|
<li>
|
|
<span class="tree-link line-wrap">
|
|
<i></i>
|
|
<span title="<%= @experiment.name %>"><%= @experiment.name %></span>
|
|
</span>
|
|
<%= render 'shared/sidebar_elements' %>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<%= link_to new_project_experiment_path(@project), id: 'new-experiment', remote: true do %>
|
|
<span class="glyphicon glyphicon-plus"></span> <i><%= t('experiments.new.create') %></i></a>
|
|
<% end %>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= javascript_include_tag("sidebar") %>
|