diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-24 00:15:21 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-24 00:26:49 +0200 |
commit | 5470fe5d8afd1f29980312dcd90eaf8ecb873155 (patch) | |
tree | be572963bec85161acc44e5bf3ec0a4a88f8799c /plugins | |
parent | 78f2909b5ef26d889c16423a05e1e3371244861c (diff) | |
download | sonarqube-5470fe5d8afd1f29980312dcd90eaf8ecb873155.tar.gz sonarqube-5470fe5d8afd1f29980312dcd90eaf8ecb873155.zip |
SONAR-5007 add EVENTS.EVENT_DATA to store links on quality profile changes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb index 6cdfe968f91..e1cf3f78383 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb @@ -82,11 +82,19 @@ <% events.each do |event| categ = event.category + profile_data={} + if categ=='Profile' && event.event_data + profile_data=Hash[*(event.event_data.split(';').map { |elt| elt.split('=') }.flatten)] + end %> <tr class="<%= cycle 'even','odd' -%> event cat_<%= categ.parameterize -%>"> <td x="<%= event.event_date -%>"><%= l(event.event_date.to_date) %></td> <td><%= h message('event.category.' + categ, :default => categ) %></td> - <td><%= event.name %></td> + <td> + <%= link_to_if profile_data['key'] && profile_data['from'] && profile_data['to'], event.name, + :controller => 'profiles', :action => 'changelog', :key => profile_data['key'], + :since => profile_data['from'], :to => profile_data['to'] -%> + </td> <td> <% unless event.description.blank? %> <i class="icon-info" title="<%= h event.description -%>"></i> |