]> source.dussan.org Git - sonarqube.git/blob
31e2b395d5a5ae23af1ab003e727683b9af88484
[sonarqube.git] /
1 <%
2    issues = @snapshot.measure('violations')
3    open_issues = @snapshot.measure('open_issues')
4    reopened_issues = @snapshot.measure('reopened_issues')
5    confirmed_issues = @snapshot.measure('confirmed_issues')
6
7    issues_search_options = {}
8    issues_search_options['resolved'] = 'false'
9    issues_search_options['componentRoots'] = @project.key
10 %>
11 <table width="100%">
12   <tr>
13     <td valign="top" width="25%">
14       <div class="dashbox">
15         <h3><%= message('widget.unresolved_issues_statuses.unresolved_issues') -%></h3>
16         <div class="marginbottom10">
17           <span class="big">
18             <%= format_measure(issues, :url => url_for({:controller => 'issues', :action => 'search' }.merge(issues_search_options))) -%>
19           </span>
20           <%= dashboard_configuration.selected_period? ? format_variation(issues) : trend_icon(issues) -%>
21         </div>
22       </div>
23     </td>
24     <td valign="top" width="25%">
25       <div class="dashbox">
26         <h3><%= message('issue.status.OPEN') -%></h3>
27         <div class="marginbottom10">
28           <span class="big">
29             <%= format_measure(open_issues, :url => url_for({:controller => 'issues', :action => 'search', :statuses => 'OPEN'}.merge(issues_search_options))) -%>
30           </span>
31           <%= dashboard_configuration.selected_period? ? format_variation(open_issues) : trend_icon(open_issues) -%>
32         </div>
33       </div>
34     </td>
35     <td valign="top" width="25%">
36       <div class="dashbox">
37         <h3><%= message('issue.status.REOPENED') -%></h3>
38         <div class="marginbottom10">
39           <span class="big">
40             <%= format_measure(reopened_issues, :url => url_for({:controller => 'issues', :action => 'search', :statuses => 'REOPENED'}.merge(issues_search_options))) -%>
41           </span>
42           <%= dashboard_configuration.selected_period? ? format_variation(reopened_issues) : trend_icon(reopened_issues) -%>
43         </div>
44       </div>
45     </td>
46     <td valign="top" width="25%">
47       <div class="dashbox">
48         <h3><%= message('issue.status.CONFIRMED') -%></h3>
49         <div class="marginbottom10">
50           <span class="big">
51             <%= format_measure(confirmed_issues, :url => url_for({:controller => 'issues', :action => 'search', :statuses => 'CONFIRMED'}.merge(issues_search_options))) -%>
52           </span>
53           <%= dashboard_configuration.selected_period? ? format_variation(confirmed_issues) : trend_icon(confirmed_issues) -%>
54         </div>
55       </div>
56     </td>
57  </tr>
58 </table>