2020-03-28 09:08:30 +00:00
|
|
|
- page_title _("Repository Analytics")
|
2015-11-08 18:29:22 +00:00
|
|
|
|
2020-05-04 06:10:10 +00:00
|
|
|
.mb-3
|
|
|
|
%h3
|
|
|
|
= _("Repository Analytics")
|
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
.repo-charts
|
2017-03-02 17:57:01 +00:00
|
|
|
%h4.sub-header
|
2018-02-08 05:55:52 +00:00
|
|
|
= _("Programming languages used in this repository")
|
2014-09-26 17:32:44 +00:00
|
|
|
|
2020-01-03 09:07:33 +00:00
|
|
|
%p
|
|
|
|
= _("Measured in bytes of code. Excludes generated and vendored code.")
|
|
|
|
|
2020-02-12 15:09:37 +00:00
|
|
|
#js-languages-chart{ data: { chart_data: @languages.to_json.html_safe } }
|
2017-03-02 17:57:01 +00:00
|
|
|
|
2020-05-15 06:08:40 +00:00
|
|
|
- if defined?(@daily_coverage_options)
|
|
|
|
.repo-charts.my-5
|
2022-07-26 12:10:14 +00:00
|
|
|
#js-code-coverage-chart{ data: project_coverage_chart_data_attributes(@daily_coverage_options, @ref) }
|
2020-05-15 06:08:40 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
.repo-charts
|
2017-03-02 17:57:01 +00:00
|
|
|
.sub-header-block.border-top
|
|
|
|
|
|
|
|
.row.tree-ref-header
|
|
|
|
.col-md-6
|
|
|
|
%h4
|
2018-02-08 05:55:52 +00:00
|
|
|
- start_time = capture do
|
|
|
|
#{@commits_graph.start_date.strftime('%b %d')}
|
|
|
|
- end_time = capture do
|
|
|
|
#{@commits_graph.end_date.strftime('%b %d')}
|
2018-06-18 13:29:27 +00:00
|
|
|
= (_("Commit statistics for %{ref} %{start_time} - %{end_time}") % { ref: "<strong>#{h @ref}</strong>", start_time: start_time, end_time: end_time }).html_safe
|
2020-02-24 09:08:51 +00:00
|
|
|
= _("Excluding merge commits. Limited to %{limit} commits.") % {limit: number_with_delimiter(@commits_limit, delimiter: ',')}
|
2017-03-02 17:57:01 +00:00
|
|
|
|
|
|
|
.col-md-6
|
|
|
|
.tree-ref-container
|
|
|
|
.tree-ref-holder
|
2022-04-22 18:09:22 +00:00
|
|
|
= render 'shared/ref_switcher', destination: 'graphs_commits', path: @path
|
2017-03-02 17:57:01 +00:00
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
|
|
|
= commits_breadcrumbs
|
2014-09-26 17:32:44 +00:00
|
|
|
|
2016-06-15 13:54:31 +00:00
|
|
|
.row
|
|
|
|
.col-md-6
|
2017-03-02 17:57:01 +00:00
|
|
|
%ul.commit-stats
|
2016-06-15 13:54:31 +00:00
|
|
|
%li
|
2018-02-08 05:55:52 +00:00
|
|
|
- total = capture do
|
|
|
|
#{@commits_graph.commits.size}
|
|
|
|
= (_("Total: %{total}") % { total: "<strong>#{total} commits</strong>" }).html_safe
|
2016-06-15 13:54:31 +00:00
|
|
|
%li
|
2018-02-08 05:55:52 +00:00
|
|
|
- average = capture do
|
|
|
|
#{@commits_graph.commit_per_day}
|
|
|
|
= (_("Average per day: %{average}") % { average: "<strong>#{average} commits</strong>" }).html_safe
|
2016-06-15 13:54:31 +00:00
|
|
|
%li
|
2018-02-08 05:55:52 +00:00
|
|
|
- authors = capture do
|
|
|
|
#{@commits_graph.authors}
|
|
|
|
= (_("Authors: %{authors}") % { authors: "<strong>#{authors}</strong>" }).html_safe
|
2016-06-15 13:54:31 +00:00
|
|
|
.col-md-6
|
2019-02-08 16:09:24 +00:00
|
|
|
%p.slead
|
|
|
|
= _("Commits per day of month")
|
2016-06-15 13:54:31 +00:00
|
|
|
%div
|
2020-02-12 15:09:37 +00:00
|
|
|
#js-month-chart{ data: { chart_data: @commits_per_month.to_json.html_safe } }
|
2016-06-15 13:54:31 +00:00
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
.col-md-6
|
2019-02-08 16:09:24 +00:00
|
|
|
%p.slead
|
|
|
|
= _("Commits per weekday")
|
2016-06-15 13:54:31 +00:00
|
|
|
%div
|
2020-02-12 15:09:37 +00:00
|
|
|
#js-weekday-chart{ data: { chart_data: @commits_per_week_days.to_json.html_safe } }
|
2017-03-02 17:57:01 +00:00
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
.col-md-6
|
2019-02-08 16:09:24 +00:00
|
|
|
%p.slead
|
|
|
|
= _("Commits per day hour (UTC)")
|
2017-03-02 17:57:01 +00:00
|
|
|
%div
|
2020-02-12 15:09:37 +00:00
|
|
|
#js-hour-chart{ data: { chart_data: @commits_per_time.to_json.html_safe } }
|