]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3567 Remove the useless "action" headers from the My Filter page
authorDavid Gageot <david@gageot.net>
Thu, 14 Jun 2012 12:48:54 +0000 (14:48 +0200)
committerDavid Gageot <david@gageot.net>
Thu, 14 Jun 2012 15:31:56 +0000 (17:31 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/filters/_menu.html.erb [deleted file]
sonar-server/src/main/webapp/WEB-INF/app/views/filters/manage.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/filters/new.html.erb

diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_menu.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_menu.html.erb
deleted file mode 100644 (file)
index 63d0f4a..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<% if logged_in? %>
-  <div id="page-operations">
-    <ul class="operations">
-      <li>
-        <a href="<%= url_for :action => 'new' -%>"><%= message('filters.add_filter') -%></a>
-      </li>
-      <% if @filter && @filter.id && @filter.authorized_to_edit?(self) %>
-        <li>
-          <a href="<%= url_for :action => 'edit', :id => @filter.id -%>"><%= message('filters.edit_filter') -%></a>
-        </li>
-      <% end %>
-      <li class="last"><%= link_to message('filters.manage_filters'), {:action => 'manage'} -%></li>
-    </ul>
-  </div>
-<% end %>
index d552e97c2a3f555a5319ed86735eafdcb284d3f8..bfba7e12ce98fb97a66128f99fe863b042a70baf 100644 (file)
@@ -1,4 +1,12 @@
-<%= render :partial => 'menu' %>
+<% if logged_in? %>
+  <div id="page-operations">
+    <ul class="operations">
+      <li>
+        <a href="<%= url_for :action => 'new' -%>"><%= message('filters.add_filter') -%></a>
+      </li>
+    </ul>
+  </div>
+<% end %>
 
 <div class="admin_page">
   <table class="data" id="actives">
index 9925c7d92e2f760c0ac8a08ccd44300ba9fbb189..70ab4edbe983df142c77ca31928e58cf23cd6ff4 100644 (file)
@@ -1,5 +1,3 @@
-<%= render :partial => 'menu' %>
-
 <h1><%= message('filters.new') -%></h1>
 
 <div class="admin">