All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.server.dashboard.widget.description.html.erb Maven / Gradle / Ivy

There is a newer version: 7.2.1
Show newest version

<%= @project.name -%>

<%= h @project.key -%> <% if @project.description.present? %>

<%= h @project.description -%>

<% end %> <% qprofiles_measure = measure(Metric::QUALITY_PROFILES) if qprofiles_measure && !qprofiles_measure.data.blank? qprofiles = JSON.parse qprofiles_measure.data if qprofiles.size>0 %>

<%= message('widget.description.profiles') -%>: <% qprofiles.each_with_index do |profile, i| %> <%= link_to profile['name'], {:controller => 'profiles', :action => 'show', :key => profile['key']}, :class => 'widget-link', :id => profile['language'] + '_profile_link' -%> (<%= Api::Utils.language_name(profile['language']) -%>) <% if i < (qprofiles.size - 1) %>,<% end %> <% end end %>

<% else [email protected]('profile') if profile_measure %>

<%= message('widget.description.profile') -%>: <%= link_to profile_measure.data, {:controller => 'profiles', :action => 'show', :id => profile_measure.value.to_i}, :class => 'widget-link', :id => 'profile_link' -%>

<% end end %> <% unless @resource.qualifier == 'DEV' or @resource.qualifier == 'VW' or @resource.qualifier == 'SVW' using_default=false root = @resource.root_project quality_gate=Property.value('sonar.qualitygate', root.id, nil) unless quality_gate quality_gate=Property.value('sonar.qualitygate', nil, nil) using_default=false || quality_gate end if quality_gate qgate = Internal.quality_gates.get(quality_gate.to_i) %>

<%= message('widget.description.qualitygate') -%>: <%= link_to qgate.getName(), (url_for :controller => '/quality_gates') + '#show/' + quality_gate, :class => 'widget-link', :id => 'qgate_link' -%> <% if using_default %> (<%= message('default') -%>) <% end %>

<% end end %> <% unless @project.project_links.empty? %> <% end %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy