From bc4697565e2ac3bd35b95df2be7c00ed1458369e Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 24 May 2012 15:44:09 +0200 Subject: [PATCH] SONAR-3348 Don't display links in filter if not browsable => The Links column on the filters page provides a Developer Connection link that browsers do not support --- .../src/main/webapp/WEB-INF/app/views/filters/_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb index 27592eb2456..571b4188cbe 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb @@ -155,7 +155,7 @@ <% elsif column.on_date? %><%= human_short_date(snapshot.created_at) %> <% elsif column.on_key? %><%= snapshot.project.kee -%> <% elsif column.on_links? - @filter_context.links(snapshot.project_id).each do |link| %> + @filter_context.links(snapshot.project_id).select {|link| link.href.start_with?('http')}.each do |link| %> <%= link_to(image_tag(link.icon, :alt => link.name), link.href, :class => 'nolink', :popup => true) unless link.custom? %> <% end end %> -- 2.39.5