mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 14:46:00 +08:00
25 lines
814 B
Text
25 lines
814 B
Text
<%= content_for :sidebar do %>
|
|
<div id="slide-panel" class="visible">
|
|
<div class="tree">
|
|
<ul>
|
|
<% repositories.each do |repository| %>
|
|
<li class="<%= 'active parent_li' if current_page?(repository_path(repository)) %>" >
|
|
<span class="tree-link line-wrap no-indent">
|
|
<% if current_page?(repository_path(repository)) %>
|
|
<span title="<%= repository.name %>"><%= repository.name %></span>
|
|
<% else %>
|
|
<%= link_to repository.name,
|
|
repository_path(repository),
|
|
data: { 'no-turbolink' => 'true' } %>
|
|
<% end %>
|
|
</span>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<script>
|
|
$('#wrapper').show();
|
|
</script>
|