]> source.dussan.org Git - sonarqube.git/commitdiff
Fix some CSS issue in source viewer
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 18 Mar 2011 09:53:38 +0000 (10:53 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 18 Mar 2011 09:53:38 +0000 (10:53 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb

index 3cb70e0395f52a320e65c3ed91b5cab7886173d0..1f1e05a2e389ae4f06dd56d4515bc534f641ac4b 100644 (file)
@@ -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
 %>
 
index 56fa8892814379d7beba519d67722e84c0fbe5b3..0500fc1c5c818349d99de777995412c68d55298f 100644 (file)
@@ -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  %>