From: simonbrandhof Date: Fri, 18 Mar 2011 09:53:38 +0000 (+0100) Subject: Fix some CSS issue in source viewer X-Git-Tag: 2.7~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd07136386eec2256f5ec5c63ead4e469ce4c072;p=sonarqube.git Fix some CSS issue in source viewer --- 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 %>