summaryrefslogtreecommitdiff
path: root/app/views/admin/dashboard/index.html.haml
blob: 4acfc96caf21ffa586f61b38e54369dbc018aca9 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
- breadcrumb_title _("Dashboard")
- page_title _("Dashboard")

- if @notices
  - @notices.each do |notice|
    .js-vue-alert{ 'v-cloak': true, data: { variant: notice[:type],
      dismissible: true.to_s } }
      = notice[:message].html_safe

- if @license.present? && show_license_breakdown?
  = render_if_exists 'admin/licenses/breakdown'

.admin-dashboard.gl-mt-3
  .row
    .col-sm-4
      .info-well.dark-well.flex-fill
        .well-segment.well-centered
          = link_to admin_projects_path do
            %h3.text-center
              = s_('AdminArea|Projects: %{number_of_projects}') % { number_of_projects: approximate_count_with_delimiters(@counts, Project) }
          %hr
          = link_to(s_('AdminArea|New project'), new_project_path, class: "btn btn-success gl-w-full")
    .col-sm-4
      .info-well.dark-well
        .well-segment.well-centered
          = link_to admin_users_path do
            %h3.text-center
              = s_('AdminArea|Users: %{number_of_users}') % { number_of_users: approximate_count_with_delimiters(@counts, User) }
          %hr
          .btn-group.d-flex{ role: 'group' }
            = link_to s_('AdminArea|New user'), new_admin_user_path, class: "btn btn-success gl-w-full"
            = link_to s_('AdminArea|Users statistics'), admin_dashboard_stats_path, class: 'btn btn-primary gl-w-full'
    .col-sm-4
      .info-well.dark-well
        .well-segment.well-centered
          = link_to admin_groups_path do
            %h3.text-center
              = s_('AdminArea|Groups: %{number_of_groups}') % { number_of_groups: approximate_count_with_delimiters(@counts, Group) }
          %hr
          = link_to s_('AdminArea|New group'), new_admin_group_path, class: "btn btn-success gl-w-full"
  .row
    .col-md-4
      #js-admin-statistics-container
    .col-md-4
      .info-well
        .well-segment.admin-well.admin-well-features
          %h4= s_('AdminArea|Features')
          = feature_entry(_('Sign up'),
            href: general_admin_application_settings_path(anchor: 'js-signup-settings'),
            enabled: allow_signup?)

          = feature_entry(_('LDAP'),
            enabled: Gitlab.config.ldap.enabled,
            doc_href: help_page_path('administration/auth/ldap'))

          = feature_entry(_('Gravatar'),
            href: general_admin_application_settings_path(anchor: 'js-account-settings'),
            enabled: gravatar_enabled?)

          = feature_entry(_('OmniAuth'),
            href: general_admin_application_settings_path(anchor: 'js-signin-settings'),
            enabled: Gitlab::Auth.omniauth_enabled?,
            doc_href: help_page_path('integration/omniauth'))

          = feature_entry(_('Reply by email'),
            enabled: Gitlab::IncomingEmail.enabled?,
            doc_href: help_page_path('administration/reply_by_email'))

          = render_if_exists 'admin/dashboard/elastic_and_geo'

          = feature_entry(_('Container Registry'),
            href: ci_cd_admin_application_settings_path(anchor: 'js-registry-settings'),
            enabled: Gitlab.config.registry.enabled,
            doc_href: help_page_path('user/packages/container_registry/index'))

          = feature_entry(_('Gitlab Pages'),
            enabled: Gitlab.config.pages.enabled,
            doc_href: help_instance_configuration_url)

          = feature_entry(_('Shared Runners'),
            href: admin_runners_path,
            enabled: Gitlab.config.gitlab_ci.shared_runners_enabled)
    .col-md-4
      .info-well
        .well-segment.admin-well
          %h4
            = s_('AdminArea|Components')
            - if Gitlab::CurrentSettings.version_check_enabled
              .float-right
                = version_status_badge
          %p
            = link_to _('GitLab'), general_admin_application_settings_path
            %span.float-right
              = Gitlab::VERSION
              = "(#{Gitlab.revision})"
          %p
            = _('GitLab Shell')
            %span.float-right
              = Gitlab::Shell.version
          %p
            = _('GitLab Workhorse')
            %span.float-right
              = gitlab_workhorse_version
          %p
            = _('GitLab API')
            %span.float-right
              = API::API::version
          - if Gitlab.config.pages.enabled
            %p
              = _('GitLab Pages')
              %span.float-right
                = Gitlab::Pages::VERSION

          = render_if_exists 'admin/dashboard/geo'

          %p
            = _('Ruby')
            %span.float-right
              #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
          %p
            = _('Rails')
            %span.float-right
              #{Rails::VERSION::STRING}
          %p
            = Gitlab::Database.human_adapter_name
            %span.float-right
              = Gitlab::Database.version
          %p
            = link_to _("Gitaly Servers"), admin_gitaly_servers_path
  .row
    .col-md-4
      .info-well
        .well-segment.admin-well
          %h4= s_('AdminArea|Latest projects')
          - @projects.each do |project|
            %p
              = link_to project.full_name, admin_project_path(project), class: 'str-truncated-60'
              %span.light.float-right
                #{time_ago_with_tooltip(project.created_at)}
    .col-md-4
      .info-well
        .well-segment.admin-well
          %h4= s_('AdminArea|Latest users')
          - @users.each do |user|
            %p
              = link_to [:admin, user], class: 'str-truncated-60' do
                = user.name
              %span.light.float-right
                #{time_ago_with_tooltip(user.created_at)}
    .col-md-4
      .info-well
        .well-segment.admin-well
          %h4= s_('AdminArea|Latest groups')
          - @groups.each do |group|
            %p
              = link_to [:admin, group], class: 'str-truncated-60' do
                = group.full_name
              %span.light.float-right
                #{time_ago_with_tooltip(group.created_at)}