From 0b7985c925f104c1d0ce780b4d743dbffce393c2 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 5 Dec 2012 18:12:19 +0100 Subject: [PATCH] SONAR-3825 move Save and Copy links --- .../WEB-INF/app/views/measures/_sidebar.html.erb | 14 +++----------- .../WEB-INF/app/views/measures/search.html.erb | 10 +++++++++- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb index 3b3efe0d19c..9c9fbf4513b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb @@ -108,7 +108,7 @@
  • > - <%= message 'measure_filter.criteria.only_favourites' %>:
    + <%= message 'measure_filter.criteria.only_favourites' %>: <%= check_box_tag 'onFavourites', 'true', @filter.criteria['onFavourites']=='true' -%>
  • @@ -151,16 +151,8 @@
  • -
  • -
  • - <%= message 'measure_filter.new_search' -%> - <% if logged_in? %> - <% if @filter.id==nil || @filter.user_id==current_user.id %> - - <%= message('save') -%> - <% end %> - <% if @filter.id %> - - <%= message('copy') -%> - <% end %> + <% if @filter.results %> + <%= message 'measure_filter.new_search' -%> <% end %>
  • diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/search.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/search.html.erb index 0af8480d965..3e6fa4652b9 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/search.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/search.html.erb @@ -16,12 +16,20 @@ <%= message('measure_filter.configure_columns') -%> <% end %> -
  • +
  • <%= message 'measure_filter.display_as' -%>: <% MeasureFilterDisplay.keys.each do |display_key| %> <%= link_to_if display_key!=@filter.display.key, message("measure_filter.display.#{display_key}"), params.merge(:action => 'search', :display => display_key, :id => @filter.id) -%> <% end %>
  • + <% if logged_in? %> + <% if @filter.id %> +
  • <%= message('copy') -%>
  • + <% end %> + <% if @filter.id==nil || @filter.user_id==current_user.id %> +
  • <%= message('save') -%>
  • + <% end %> + <% end %>
    <% if @filter.description.present? %> -- 2.39.5