From 123f3b796b45ef0c7098d33a9f7b80fd1c4aceb2 Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 12 Apr 2018 14:48:14 +0200 Subject: [PATCH 1/3] remove catched views [fixes SCI-2290] --- app/views/repositories/_sidebar.html.erb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/views/repositories/_sidebar.html.erb b/app/views/repositories/_sidebar.html.erb index 3651d48cc..90dceb8d2 100644 --- a/app/views/repositories/_sidebar.html.erb +++ b/app/views/repositories/_sidebar.html.erb @@ -8,7 +8,6 @@ <% repositories.each do |repository| %> - <% cache repository do %>
  • <% if current_page?(repository_path(repository)) %> @@ -20,7 +19,6 @@ <% end %>
  • - <% end %> <% end %> From 5f5829bbe4b884488da4c872dd1353a4644f269b Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 12 Apr 2018 14:49:51 +0200 Subject: [PATCH 2/3] fix indentation --- app/views/repositories/_sidebar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/repositories/_sidebar.html.erb b/app/views/repositories/_sidebar.html.erb index 90dceb8d2..b532c79c8 100644 --- a/app/views/repositories/_sidebar.html.erb +++ b/app/views/repositories/_sidebar.html.erb @@ -11,7 +11,7 @@
  • <% if current_page?(repository_path(repository)) %> - <%= repository.name %> + <%= repository.name %> <% else %> <%= link_to repository.name, repository_path(repository), From f2c314cc855d8b5323810f7f2fdb139923f3910b Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 12 Apr 2018 17:12:45 +0200 Subject: [PATCH 3/3] fix indentation --- app/views/repositories/_sidebar.html.erb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/repositories/_sidebar.html.erb b/app/views/repositories/_sidebar.html.erb index b532c79c8..e2a39f56c 100644 --- a/app/views/repositories/_sidebar.html.erb +++ b/app/views/repositories/_sidebar.html.erb @@ -8,17 +8,17 @@
  • <% repositories.each do |repository| %> -
  • - - <% if current_page?(repository_path(repository)) %> - <%= repository.name %> - <% else %> - <%= link_to repository.name, - repository_path(repository), - data: { 'no-turbolink' => 'true' } %> - <% end %> - -
  • +
  • + + <% if current_page?(repository_path(repository)) %> + <%= repository.name %> + <% else %> + <%= link_to repository.name, + repository_path(repository), + data: { 'no-turbolink' => 'true' } %> + <% end %> + +
  • <% end %>