]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3348 Don't display links in filter if not browsable
authorFabrice Bellingard <bellingard@gmail.com>
Thu, 24 May 2012 13:44:09 +0000 (15:44 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Thu, 24 May 2012 13:44:09 +0000 (15:44 +0200)
=> The Links column on the filters page provides a Developer
   Connection link that browsers do not support

sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb

index 27592eb2456aae0d3e56662bf05453c73b21dd90..571b4188cbe3e3e3e821980f9d206c4b2c4f3f02 100644 (file)
         <% elsif column.on_date? %><%= human_short_date(snapshot.created_at) %>
         <% elsif column.on_key? %><span class="small"><%= snapshot.project.kee -%></span>
         <% 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 %>