aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-02-14 15:24:47 +0100
committerFabrice Bellingard <bellingard@gmail.com>2012-02-14 15:25:23 +0100
commit7cbe24d9765f4d212fd651bdbf864ac52d218938 (patch)
treecd3cd033f2c41d34767c4b5d71d7705bb7f89531 /plugins
parent1065f1eb91fb05b26c32432625236ea39ea4fcee (diff)
downloadsonarqube-7cbe24d9765f4d212fd651bdbf864ac52d218938.tar.gz
sonarqube-7cbe24d9765f4d212fd651bdbf864ac52d218938.zip
SONAR-3014 Improve rendering
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb
index 8152bde247f..9368906541d 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb
@@ -36,10 +36,11 @@
<td id="resource_links">
<% @project.project_links.sort.each do |link| %>
<div>
- <%= link_to(image_tag(link.icon, :alt => link.name), link.href , :popup => true, :class => 'nolink') -%>
<% if link.href.starts_with?('http') %>
+ <%= link_to(image_tag(link.icon, :alt => link.name), link.href , :popup => true, :class => 'nolink') -%>
<%= link_to(h(link.name), link.href, :popup => true) -%>
<% else %>
+ <%= image_tag(link.icon, :alt => link.name) -%>
<a href="#" onclick="$('link_<%= link.id -%>').toggle();return false;"><%= h(link.name) -%></a>
<div id="link_<%= link.id -%>" style="padding-left: 20px; display:none"><%= h(link.href) -%></div>
<% end %>