From: Fabrice Bellingard Date: Fri, 5 Oct 2012 13:33:52 +0000 (+0200) Subject: SONAR-3676 Improve Links page X-Git-Tag: 3.3~103 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cbb017dc1dc58f3175d7d9fcab9643c4beafc74a;p=sonarqube.git SONAR-3676 Improve Links page --- 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