2018-03-21 16:22:55 +08:00
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<div id="slide-panel" class="visible">
|
|
|
|
<div class="tree">
|
|
|
|
<ul>
|
2018-03-28 20:12:11 +08:00
|
|
|
<li>
|
|
|
|
<span class="tree-link line-wrap no-indent">
|
|
|
|
<strong title="<%= t('libraries.sidebar.title') %>"><%= t('libraries.sidebar.title') %></strong>
|
|
|
|
</span>
|
|
|
|
</li>
|
2018-03-21 16:22:55 +08:00
|
|
|
<% repositories.each do |repository| %>
|
2018-04-12 23:12:45 +08:00
|
|
|
<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>
|
2018-03-21 16:22:55 +08:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2018-03-28 20:12:11 +08:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#wrapper').show();
|
|
|
|
})
|
|
|
|
</script>
|