diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-14 15:24:47 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-14 15:25:23 +0100 |
commit | 7cbe24d9765f4d212fd651bdbf864ac52d218938 (patch) | |
tree | cd3cd033f2c41d34767c4b5d71d7705bb7f89531 /plugins | |
parent | 1065f1eb91fb05b26c32432625236ea39ea4fcee (diff) | |
download | sonarqube-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.erb | 3 |
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 %> |