]> source.dussan.org Git - sonarqube.git/blob
6cdc14165ac0511886259de2372d39607b177439
[sonarqube.git] /
1 <%
2   comments=measure('comment_lines_density')
3   if comments
4 %>
5 <table width="100%">
6   <tbody>
7     <tr>
8       <td valign="top" width="50%">
9         <div class="dashbox">
10           <p class="title"><%= message('widget.documentation_comments.documentation') -%></p>
11           <p>
12             <span class="big">
13               <%= format_measure(measure('public_documented_api_density'),:url => url_for_drilldown('public_documented_api_density'), :suffix =>  ' ' + message('widget.documentation_comments.docu_api.suffix'))%>
14             </span>
15             <%= dashboard_configuration.selected_period? ? format_variation('public_documented_api_density') : trend_icon('public_documented_api_density') -%>
16           </p>
17           <p>
18             <%= format_measure(measure('public_api'),:url => url_for_drilldown('public_api'), :suffix =>  ' ' + message('widget.documentation_comments.public_api.suffix'))%>
19             <%= dashboard_configuration.selected_period? ? format_variation('public_api') : trend_icon('public_api') -%>
20           </p>
21           <p>
22             <%= format_measure(measure('public_undocumented_api'),:url => url_for_drilldown('public_undocumented_api'), :suffix => ' ' + message('widget.documentation_comments.undocu_api.suffix'))%>
23             <%= dashboard_configuration.selected_period? ? format_variation('public_undocumented_api') : trend_icon('public_undocumented_api') -%>
24           </p>
25         </div>
26       </td>
27       <td valign="top" width="50%">
28         <div class="dashbox">
29           <p class="title"><%= message('widget.documentation_comments.comments') -%></p>
30           <p>
31             <span class="big">
32               <%= format_measure('comment_lines_density',:url => url_for_drilldown('comment_lines_density'))%>
33             </span>
34             <%= dashboard_configuration.selected_period? ? format_variation('comment_lines_density') : trend_icon('comment_lines_density') -%>
35           </p>
36           <p>
37             <%= format_measure(measure('comment_lines'),:url => url_for_drilldown('comment_lines'), :suffix =>  ' ' + message('widget.documentation_comments.lines.suffix'))%>
38             <%= dashboard_configuration.selected_period? ? format_variation('comment_lines') : trend_icon('comment_lines') -%>
39           </p>
40         </div>
41       </td>
42     </tr>
43   </tbody>
44 </table>
45 <%
46   end
47 %>