Skip to content
代码片段 群组 项目
提交 de5fc639 编辑于 作者: Brandon Labuschagne's avatar Brandon Labuschagne
浏览文件

Additional BE refactor

上级 08d4ceb6
No related branches found
No related tags found
无相关合并请求
......@@ -2,15 +2,13 @@
module DevOpsReportHelper
def devops_score_metrics(metric)
if metric.blank?
{}
else
{
averageScore: average_score_data(metric),
cards: devops_score_card_data(metric),
createdAt: metric.created_at.strftime('%Y-%m-%d %H:%M')
}
end
return {} if metric.blank?
{
averageScore: average_score_data(metric),
cards: devops_score_card_data(metric),
createdAt: metric.created_at.strftime('%Y-%m-%d %H:%M')
}
end
private
......
.container.devops-empty
.col-sm-12.justify-content-center.text-center
= custom_icon('dev_ops_report_no_data')
%h4= _('Data is still calculating...')
%p
= _('It may be several days before you see feature usage data.')
= link_to _('Our documentation includes an example DevOps Score report.'), help_page_path('user/admin_area/analytics/dev_ops_report'), target: '_blank'
......@@ -22990,9 +22990,6 @@ msgstr ""
msgid "Otherwise, click the link below to complete the process:"
msgstr ""
 
msgid "Our documentation includes an example DevOps Score report."
msgstr ""
msgid "Out-of-compliance with this project's policies and should be removed"
msgstr ""
 
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册