diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-09 10:30:49 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-09 10:30:49 +0000 |
commit | f39892b2fea532015b0013267836da9e81b11dca (patch) | |
tree | 8c8da2fbb44883d2a64ce4d62135ff44d065fadf /sonar-server | |
parent | faf5a6a1cbc3ebb5b28ac25c939ba05001a7adb9 (diff) | |
download | sonarqube-f39892b2fea532015b0013267836da9e81b11dca.tar.gz sonarqube-f39892b2fea532015b0013267836da9e81b11dca.zip |
SONAR-1776 - Add a page "Permalinks" to the profile console
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/profiles/permalinks.html.erb | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/permalinks.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/permalinks.html.erb index 3989f6a0471..780260801fe 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/permalinks.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/permalinks.html.erb @@ -1,23 +1,26 @@ <h1 class="marginbottom10"><%= link_to 'Quality profiles', :controller => 'profiles', :action => 'index' -%> / <%= h @profile.language -%> / <%= h @profile.name %></h1> <%= render :partial => 'profiles/tabs', :locals => {:selected_tab=>'Permalinks'} %> -<!--<div class="tabs-panel marginbottom10 background-gray"> - -</div>--> -<br/> -<% exporters=controller.java_facade.getProfileExportersForLanguage(@profile.language) %> -<table class="data2 without-header marginbottom10 "> - <tbody> - <% exporters.each do |exporter| %> - <tr class="<%= cycle('even','odd') -%>"> - <td width="1%" nowrap> - <%= h exporter.getName() -%> - </td> - <td> - <% permalink=url_for :controller => 'profiles', :action => 'export', :language => @profile.language, :name => url_encode(@profile.name), :format => exporter.getKey(), :only_path => false %> - <span class="small"><%= link_to permalink, permalink, :id => "export_" + exporter.getKey().to_s + "_" + u(@profile.key) %></span> - </td> - </tr> - <% end %> - </tbody> -</table>
\ No newline at end of file +<div class="tabs-panel marginbottom10 "> + <% exporters=controller.java_facade.getProfileExportersForLanguage(@profile.language) %> + <% if exporters.empty? %> + <p>No permalinks</p> + <% else %> + <br/> + <table class="data2 without-header marginbottom10 "> + <tbody> + <% exporters.each do |exporter| %> + <tr class="<%= cycle('even','odd') -%>"> + <td width="1%" nowrap> + <%= h exporter.getName() -%> + </td> + <td> + <% permalink=url_for :controller => 'profiles', :action => 'export', :language => @profile.language, :name => url_encode(@profile.name), :format => exporter.getKey(), :only_path => false %> + <span class="small"><%= link_to permalink, permalink, :id => "export_" + exporter.getKey().to_s + "_" + u(@profile.key) %></span> + </td> + </tr> + <% end %> + </tbody> + </table> + <% end %> +</div>
\ No newline at end of file |