]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3972 By default, don't show resource title
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Mon, 3 Dec 2012 15:59:55 +0000 (16:59 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Tue, 4 Dec 2012 14:35:02 +0000 (15:35 +0100)
=> Display it only when requested, i.e. by the violation/measure
   drilldown or when opening a new window

sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb

index 724a26cb0099c1aa3496b7bdbfb8b19c1fdfe94e..d969cf92417bd556cd638ec9cb5d2b2063a324ab 100644 (file)
@@ -1,5 +1,5 @@
 <%
-   display_title=(params[:display_title]!='false')
+   display_title=(params[:display_title]=='true')
    if display_title
 %>
   <div id="source_title">
@@ -28,7 +28,7 @@
        end
        if request.xhr? %>
       <li class="<%= 'first' if first -%>">
-        <a href="<%= ApplicationController.root_context -%>/resource/index/<%= @resource.key -%>" onclick="window.open(this.href,'resource','height=800,width=900,scrollbars=1,resizable=1');return false;"><%= message('new_window') -%></a>
+        <a href="<%= ApplicationController.root_context -%>/resource/index/<%= @resource.key -%>?display_title=<%= display_title -%>" onclick="window.open(this.href,'resource','height=800,width=900,scrollbars=1,resizable=1');return false;"><%= message('new_window') -%></a>
       </li>
     <% end %>
   </ul>