2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2018-03-17 18:26:18 +05:30
|
|
|
- breadcrumb_title "Dashboard"
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2018-11-08 19:23:39 +05:30
|
|
|
= render_if_exists 'admin/licenses/breakdown', license: @license
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.admin-dashboard.prepend-top-default
|
2018-03-17 18:26:18 +05:30
|
|
|
.row
|
|
|
|
.col-sm-4
|
|
|
|
.info-well.dark-well
|
|
|
|
.well-segment.well-centered
|
|
|
|
= link_to admin_projects_path do
|
|
|
|
%h3.text-center
|
|
|
|
Projects:
|
2018-11-08 19:23:39 +05:30
|
|
|
= approximate_count_with_delimiters(@counts, Project)
|
2018-03-17 18:26:18 +05:30
|
|
|
%hr
|
2018-12-05 23:21:45 +05:30
|
|
|
= link_to('New project', new_project_path, class: "btn btn-success")
|
2018-03-17 18:26:18 +05:30
|
|
|
.col-sm-4
|
|
|
|
.info-well.dark-well
|
|
|
|
.well-segment.well-centered
|
|
|
|
= link_to admin_users_path do
|
|
|
|
%h3.text-center
|
|
|
|
Users:
|
2018-11-08 19:23:39 +05:30
|
|
|
= approximate_count_with_delimiters(@counts, User)
|
2018-03-17 18:26:18 +05:30
|
|
|
%hr
|
2019-07-07 11:18:12 +05:30
|
|
|
.btn-group.d-flex{ role: 'group' }
|
|
|
|
= link_to 'New user', new_admin_user_path, class: "btn btn-success"
|
|
|
|
= render_if_exists 'admin/dashboard/users_statistics'
|
2018-03-17 18:26:18 +05:30
|
|
|
.col-sm-4
|
|
|
|
.info-well.dark-well
|
|
|
|
.well-segment.well-centered
|
|
|
|
= link_to admin_groups_path do
|
|
|
|
%h3.text-center
|
|
|
|
Groups:
|
2018-11-08 19:23:39 +05:30
|
|
|
= approximate_count_with_delimiters(@counts, Group)
|
2018-03-17 18:26:18 +05:30
|
|
|
%hr
|
2018-12-05 23:21:45 +05:30
|
|
|
= link_to 'New group', new_admin_group_path, class: "btn btn-success"
|
2016-06-16 23:09:34 +05:30
|
|
|
.row
|
|
|
|
.col-md-4
|
2017-09-10 17:25:29 +05:30
|
|
|
.info-well
|
2018-03-17 18:26:18 +05:30
|
|
|
.well-segment.admin-well.admin-well-statistics
|
2017-09-10 17:25:29 +05:30
|
|
|
%h4 Statistics
|
|
|
|
%p
|
|
|
|
Forks
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
2018-12-13 13:39:08 +05:30
|
|
|
= approximate_fork_count_with_delimiters(@counts)
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
Issues
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
|
|
|
= approximate_count_with_delimiters(@counts, Issue)
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
Merge Requests
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
|
|
|
= approximate_count_with_delimiters(@counts, MergeRequest)
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
Notes
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
|
|
|
= approximate_count_with_delimiters(@counts, Note)
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
Snippets
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
|
|
|
= approximate_count_with_delimiters(@counts, Snippet)
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
SSH Keys
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
|
|
|
= approximate_count_with_delimiters(@counts, Key)
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
Milestones
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
|
|
|
= approximate_count_with_delimiters(@counts, Milestone)
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
Active Users
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
= number_with_delimiter(User.active.count)
|
2016-06-16 23:09:34 +05:30
|
|
|
.col-md-4
|
2017-09-10 17:25:29 +05:30
|
|
|
.info-well
|
2018-03-17 18:26:18 +05:30
|
|
|
.well-segment.admin-well.admin-well-features
|
2017-09-10 17:25:29 +05:30
|
|
|
%h4 Features
|
2019-10-12 21:52:04 +05:30
|
|
|
= feature_entry(_('Sign up'), href: admin_application_settings_path(anchor: 'js-signup-settings'))
|
|
|
|
= feature_entry(_('LDAP'), enabled: Gitlab.config.ldap.enabled)
|
|
|
|
= feature_entry(_('Gravatar'), href: admin_application_settings_path(anchor: 'js-account-settings'), enabled: gravatar_enabled?)
|
|
|
|
= feature_entry(_('OmniAuth'), href: admin_application_settings_path(anchor: 'js-signin-settings'), enabled: Gitlab::Auth.omniauth_enabled?)
|
|
|
|
= feature_entry(_('Reply by email'), enabled: Gitlab::IncomingEmail.enabled?)
|
2018-11-08 19:23:39 +05:30
|
|
|
|
|
|
|
= render_if_exists 'admin/dashboard/elastic_and_geo'
|
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
= feature_entry(_('Container Registry'), href: ci_cd_admin_application_settings_path(anchor: 'js-registry-settings'), enabled: Gitlab.config.registry.enabled)
|
|
|
|
= feature_entry(_('Gitlab Pages'), href: help_instance_configuration_url, enabled: Gitlab.config.pages.enabled)
|
|
|
|
= feature_entry(_('Shared Runners'), href: admin_runners_path, enabled: Gitlab.config.gitlab_ci.shared_runners_enabled)
|
2016-06-16 23:09:34 +05:30
|
|
|
.col-md-4
|
2017-09-10 17:25:29 +05:30
|
|
|
.info-well
|
|
|
|
.well-segment.admin-well
|
|
|
|
%h4
|
|
|
|
Components
|
2018-03-17 18:26:18 +05:30
|
|
|
- if Gitlab::CurrentSettings.version_check_enabled
|
2018-11-08 19:23:39 +05:30
|
|
|
.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
= version_status_badge
|
|
|
|
%p
|
2019-10-12 21:52:04 +05:30
|
|
|
%a{ href: admin_application_settings_path }
|
|
|
|
GitLab
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
= Gitlab::VERSION
|
2018-10-15 14:42:47 +05:30
|
|
|
= "(#{Gitlab.revision})"
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
GitLab Shell
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
= Gitlab::Shell.new.version
|
|
|
|
%p
|
|
|
|
GitLab Workhorse
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
= gitlab_workhorse_version
|
|
|
|
%p
|
|
|
|
GitLab API
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
= API::API::version
|
2018-03-17 18:26:18 +05:30
|
|
|
- if Gitlab.config.pages.enabled
|
|
|
|
%p
|
|
|
|
GitLab Pages
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2018-03-17 18:26:18 +05:30
|
|
|
= Gitlab::Pages::VERSION
|
2018-11-08 19:23:39 +05:30
|
|
|
|
|
|
|
= render_if_exists 'admin/dashboard/geo'
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
%p
|
|
|
|
Ruby
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
|
|
|
|
%p
|
|
|
|
Rails
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
#{Rails::VERSION::STRING}
|
|
|
|
%p
|
2019-07-07 11:18:12 +05:30
|
|
|
= Gitlab::Database.human_adapter_name
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
= Gitlab::Database.version
|
2018-03-17 18:26:18 +05:30
|
|
|
%p
|
|
|
|
= link_to "Gitaly Servers", admin_gitaly_servers_path
|
2017-09-10 17:25:29 +05:30
|
|
|
.row
|
2016-06-16 23:09:34 +05:30
|
|
|
.col-md-4
|
2017-09-10 17:25:29 +05:30
|
|
|
.info-well
|
|
|
|
.well-segment.admin-well
|
|
|
|
%h4 Latest projects
|
|
|
|
- @projects.each do |project|
|
|
|
|
%p
|
2019-02-15 15:39:39 +05:30
|
|
|
= link_to project.full_name, admin_project_path(project), class: 'str-truncated-60'
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
#{time_ago_with_tooltip(project.created_at)}
|
2016-06-16 23:09:34 +05:30
|
|
|
.col-md-4
|
2017-09-10 17:25:29 +05:30
|
|
|
.info-well
|
|
|
|
.well-segment.admin-well
|
|
|
|
%h4 Latest users
|
|
|
|
- @users.each do |user|
|
|
|
|
%p
|
|
|
|
= link_to [:admin, user], class: 'str-truncated-60' do
|
|
|
|
= user.name
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
#{time_ago_with_tooltip(user.created_at)}
|
2016-06-16 23:09:34 +05:30
|
|
|
.col-md-4
|
2017-09-10 17:25:29 +05:30
|
|
|
.info-well
|
|
|
|
.well-segment.admin-well
|
|
|
|
%h4 Latest groups
|
|
|
|
- @groups.each do |group|
|
|
|
|
%p
|
|
|
|
= link_to [:admin, group], class: 'str-truncated-60' do
|
|
|
|
= group.full_name
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.light.float-right
|
2017-09-10 17:25:29 +05:30
|
|
|
#{time_ago_with_tooltip(group.created_at)}
|