]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2218 improve header: do not display options block if no options
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 4 Mar 2011 10:10:34 +0000 (11:10 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 4 Mar 2011 10:10:34 +0000 (11:10 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/browse/_options.html.erb

index db84ebf798a58306fdc687220e146229541c271b..2b13e1736d4879baaf18e33e17bbfd1c5c5245db 100644 (file)
@@ -1,3 +1,7 @@
+<% display_options = @scm_available || @expandable || @snapshot.project_snapshot.periods? || @display_violations
+   if display_options
+%>
+
 <div id="source_options">
   <script>
     applyOptions=function() {
@@ -58,3 +62,4 @@
     </table>
   </form>
 </div>
+<% end %>
\ No newline at end of file