|
|
|
@ -43,7 +43,15 @@
|
|
|
|
|
<div class="analysis-tag-wrap f16"> <span class="analysis-tag fl mr15"></span> <span class="fb fl mr10">质量等级</span><span class="mr10 fontGrey2"><span class="c_red f18" style="margin-top:-5px; display:inline-block;"><%=@complexity["msr"][9].nil? ? 0 : score_sqale_rating(@complexity["msr"][9]["val"].to_i) %></span>/5分</span>
|
|
|
|
|
<span class="fontGrey2">可定性评价为:<span class="c_red">质量<%=@complexity["msr"][9].nil? ? "很好" : sqale_rating_status(@complexity["msr"][9]["val"])[0] %></span></span></div>
|
|
|
|
|
<div class="analysis-block mt10 mb40 f14">
|
|
|
|
|
<div><span class="fontGrey3 mr30">技术债务</span><span class="w70 pInline"><%=@complexity["msr"][8].nil? ? 0 : @complexity["msr"][8]["frmt_val"] %></span>
|
|
|
|
|
<div><span class="fontGrey3 mr30">技术债务</span>
|
|
|
|
|
<span class="w70 pInline">
|
|
|
|
|
<% if @complexity["msr"][8].nil? %>
|
|
|
|
|
0
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= /[0-9]*/.match(@complexity["msr"][8]["frmt_val"])[0] %>天
|
|
|
|
|
<%= / [0-9]*/.match(@complexity["msr"][8]["frmt_val"]) %>小时
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="fontGrey2"><a class="linkBlue2" target="_blank" href="<%= @sonar_address %>/drilldown/measures/<%= @resource_id %>?metric=sqale_index">查看详情</a></span></div>
|
|
|
|
|
<div><span class="fontGrey3 mr30 fl">质量问题</span>
|
|
|
|
|
<span class="fontBlue2 w70 pInline"><a class="fontBlue2 w70 pInline" target="_blank" href="<%= @sonar_address %>/component_issues?id=<%= @resource_id %>#resolved=false"><%=@sonar_issues["msr"][0].nil? ? 0 : @sonar_issues["msr"][0]["frmt_val"] %></a></span><span class="fontGrey2"> 问题分类如下:</span></div>
|
|
|
|
|