2016-07-28 17:00:56 +08:00
|
|
|
<%= content_for :sidebar do %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<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>
|
2016-12-14 17:35:48 +08:00
|
|
|
<% if project_page? ||
|
|
|
|
sample_types_page_project? ||
|
|
|
|
sample_groups_page_project? %>
|
2016-08-24 16:47:30 +08:00
|
|
|
<li class="active">
|
|
|
|
<span class="tree-link line-wrap">
|
|
|
|
<i></i>
|
2016-09-01 16:38:20 +08:00
|
|
|
<span data-project-id="<%= @project.id %>"
|
|
|
|
title="<%= @project.name %>"><%= @project.name %></span>
|
2016-08-24 16:47:30 +08:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li>
|
|
|
|
<span class="tree-link line-wrap">
|
|
|
|
<i></i>
|
|
|
|
<%= link_to @project.name,
|
|
|
|
project_action_to_link_to(@project),
|
2016-08-31 21:13:17 +08:00
|
|
|
title: @project.name,
|
2016-09-01 16:38:20 +08:00
|
|
|
data: { project_id: @project.id } %>
|
2016-08-24 16:47:30 +08:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<%= render partial: 'shared/sidebar/experiments',
|
|
|
|
locals: { project: @project } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= javascript_include_tag("sidebar") %>
|