Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_cohorts_table.html.haml « cohorts « instance_statistics « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d148e27edbe1f1e19f3aaacd28319275bc404f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.bs-callout.clearfix
  %p
    = _("User cohorts are shown for the last %{months_included} " +                    |
    "months. Only users with activity are counted in the cohort total; inactive" +     |
    "users are counted separately.") % { months_included: @cohorts[:months_included] } |
    = link_to icon('question-circle'), help_page_path('user/instance_statistics/user_cohorts', anchor: 'cohorts'), title: _('About this feature'), target: '_blank'

.table-holder
  %table.table
    %thead
      %tr
        %th= _('Registration month')
        %th= _('Inactive users')
        %th= _('Cohort total')
        - @cohorts[:months_included].times do |i|
          %th= _('Month %{month_number}') % { month_number: i }
    %tbody
      - @cohorts[:cohorts].each do |cohort|
        %tr
          %td= cohort[:registration_month]
          %td= cohort[:inactive]
          %td= cohort[:total]
          - cohort[:activity_months].each do |activity_month|
            %td
              - next if cohort[:total] == '0'
              = activity_month[:percentage]
              %br
              = activity_month[:total]