diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-18 10:53:38 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-18 10:53:38 +0100 |
commit | dd07136386eec2256f5ec5c63ead4e469ce4c072 (patch) | |
tree | b7203b28e59c5451deaaeb1e492fcb0ee81829da /sonar-server | |
parent | 84701fd752cba8d48aa98a63c171c574d599622d (diff) | |
download | sonarqube-dd07136386eec2256f5ec5c63ead4e469ce4c072.tar.gz sonarqube-dd07136386eec2256f5ec5c63ead4e469ce4c072.zip |
Fix some CSS issue in source viewer
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb | 2 | ||||
-rw-r--r-- | sonar-server/src/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 @@ %> <tr> <% + if @scm_available if current_revision!=line.revision current_revision=line.revision title = "Revision #{h(line.revision)}" @@ -73,7 +74,9 @@ <td class="scm revision"><span class="date"><a href="#" title="<%= title -%>" alt="<%= title -%>"><%= Java::OrgSonarApiUtils::DateUtils.formatDate(line.datetime) if line.datetime -%></a></span> <span class="author"><%= h(line.author) -%></span></td> <% else %> <td class="scm"></td> - <% end %> + <% end + end + %> <td class="lid <%= ' section' if line.violations? -%>" id="L<%= index+1 -%>"><a name="L<%= index+1 -%>" href="#L<%= index+1 -%>"><%= index + 1 -%></a></td> <% if @display_coverage %> |