mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
37 lines
1 KiB
Text
37 lines
1 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">
|
|
<% if !project_page? %>
|
|
<ul>
|
|
<li>
|
|
<span class="tree-link line-wrap">
|
|
<i></i>
|
|
<%= link_to @project.name,
|
|
project_action_to_link_to(@project),
|
|
title: @project.name %>
|
|
</span>
|
|
<%= render partial: 'shared/sidebar/experiments',
|
|
locals: { project: @project } %>
|
|
</li>
|
|
</ul>
|
|
<% else %>
|
|
<%= render partial: 'shared/sidebar/experiments',
|
|
locals: { project: @project } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= javascript_include_tag("sidebar") %>
|