]> source.dussan.org Git - sonarqube.git/commitdiff
Remove detach link in project viewers
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 4 Jul 2014 17:18:37 +0000 (19:18 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 4 Jul 2014 17:19:33 +0000 (19:19 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb

index 6d896b6dfbb6cf66f1b10c4fb5fae597fd55c17d..9b1e13a610f918c53da4c0b67816b3455a87f3dd 100644 (file)
   <% end %>
 
   <div class="source_tabs">
-    <ul class="tablinks">
-      <% first=true %>
-      <% if @snapshot.has_source && has_role?(:codeviewer, @snapshot) %>
-        <li class="<%= 'first' if first -%>">
-          <a href="<%= ApplicationController.root_context -%>/api/sources?resource=<%= @resource.key -%>&amp;format=txt"><%= message('raw') -%></a>
-        </li>
-      <% first=false
-         end %>
-      <% unless @popup_mode %>
-        <li class="<%= 'first' if first -%>">
-          <a href="<%= url_for :controller => 'resource', :action => 'index', :id => @resource.key, :period => params[:period], :metric => params[:metric],
-                               :rule => params[:rule] ? params[:rule] : params[:rule_sev], :display_title => 'true' -%>"
-             onclick="window.open(this.href,'resource','height=800,width=900,scrollbars=1,resizable=1');return false;"
-             id="new-window-<%= @resource.key.parameterize -%>"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a>
-        </li>
-      <% end %>
-    </ul>
     <ul class="tabs">
       <% @extensions.each do |extension| %>
         <li>