From dd07136386eec2256f5ec5c63ead4e469ce4c072 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 18 Mar 2011 10:53:38 +0100 Subject: [PATCH] Fix some CSS issue in source viewer --- .../main/webapp/WEB-INF/app/views/resource/_options.html.erb | 2 +- .../main/webapp/WEB-INF/app/views/resource/index.html.erb | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb index 3cb70e0395f..1f1e05a2e38 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb @@ -1,4 +1,4 @@ -<% display_options = @scm_available || @expandable || @snapshot.project_snapshot.periods? || @display_violations +<% display_options = @scm_available || @expandable || @filtered || @display_violations if display_options %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb index 56fa8892814..0500fc1c5c8 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb @@ -66,6 +66,7 @@ %> <% + if @scm_available if current_revision!=line.revision current_revision=line.revision title = "Revision #{h(line.revision)}" @@ -73,7 +74,9 @@ <%= Java::OrgSonarApiUtils::DateUtils.formatDate(line.datetime) if line.datetime -%> <%= h(line.author) -%> <% else %> - <% end %> + <% end + end + %> <%= index + 1 -%> <% if @display_coverage %> -- 2.39.5