From ec3220480906158c5f1f715ed3e0c145c25069de Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 7 Jul 2016 15:53:07 +0800 Subject: [PATCH] sql_index --to chinese --- app/views/quality_analysis/_show.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/quality_analysis/_show.html.erb b/app/views/quality_analysis/_show.html.erb index 1a7869fd0..0b16a1adb 100644 --- a/app/views/quality_analysis/_show.html.erb +++ b/app/views/quality_analysis/_show.html.erb @@ -43,7 +43,15 @@
质量等级<%=@complexity["msr"][9].nil? ? 0 : score_sqale_rating(@complexity["msr"][9]["val"].to_i) %>/5分 可定性评价为:质量<%=@complexity["msr"][9].nil? ? "很好" : sqale_rating_status(@complexity["msr"][9]["val"])[0] %>
-
技术债务<%=@complexity["msr"][8].nil? ? 0 : @complexity["msr"][8]["frmt_val"] %> +
技术债务 + + <% 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 %> + 查看详情
质量问题 <%=@sonar_issues["msr"][0].nil? ? 0 : @sonar_issues["msr"][0]["frmt_val"] %> 问题分类如下: