Merge pull request #1088 from ZmagoD/zd_SCI_2290

remove catched views [fixes SCI-2290]
This commit is contained in:
Zmago Devetak 2018-04-13 08:24:28 +02:00 committed by GitHub
commit f5127bad99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,19 +8,17 @@
</span>
</li>
<% repositories.each do |repository| %>
<% cache repository do %>
<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)) %>
<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 %>
<% else %>
<%= link_to repository.name,
repository_path(repository),
data: { 'no-turbolink' => 'true' } %>
<% end %>
</span>
</li>
<% end %>
</ul>
</div>