From cbb017dc1dc58f3175d7d9fcab9643c4beafc74a Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Fri, 5 Oct 2012 15:33:52 +0200 Subject: [PATCH] SONAR-3676 Improve Links page --- .../app/controllers/project_controller.rb | 2 +- .../WEB-INF/app/views/project/links.html.erb | 122 ++++++++++++------ 2 files changed, 83 insertions(+), 41 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb index 5e59296c6e3..adcabe47bd4 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb @@ -206,7 +206,7 @@ class ProjectController < ApplicationController def set_links project = get_current_project(params[:project_id]) - project.links.clear + project.custom_links.each {|link| link.delete} params.each_pair do |param_key, value| if (param_key.starts_with?('name_')) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/links.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/links.html.erb index 47479d9c8fc..e3bd566ee78 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/links.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/links.html.erb @@ -1,5 +1,16 @@

Project Links


+ + + <% end %> \ No newline at end of file -- 2.39.5