]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4187 Remove the hack which leads do display the 'History' page on views even...
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 13 Aug 2013 09:58:38 +0000 (11:58 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 13 Aug 2013 09:58:38 +0000 (11:58 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb

index cbf2e5c899ba2452139f8c336a604fb8d7057aed..d6362174d1b2b8ed21e9a5cba1d8a82cbc5f483d 100644 (file)
       %>
       <li><a href="<%= ApplicationController.root_context -%>/project_roles/index/<%= @project.id -%>"><%= message('roles.page') -%></a></li>
       <% end %>
-      <%
-         # NOTE: we keep "@project.view?" in the test for backward compatibility with the Views plugin
-         if (is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'modifiable_history') || @project.view?)
-      %>
+      <% if is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'modifiable_history') %>
         <li><a href="<%= ApplicationController.root_context -%>/project/history/<%= @project.id -%>"><%= message('project_history.page') -%></a></li>
       <% end %>
       <% if is_admin && controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'updatable_key') %>