2016-06-14 16:37:02 -04:00
|
|
|
- @no_container = true
|
2017-08-17 10:53:50 -04:00
|
|
|
- breadcrumb_title "Dashboard"
|
2015-02-12 23:31:55 -05:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-14 16:37:02 -04:00
|
|
|
.admin-dashboard.prepend-top-default
|
2018-01-12 14:45:05 -05:00
|
|
|
.row
|
|
|
|
.col-sm-4
|
|
|
|
.info-well.dark-well
|
|
|
|
.well-segment.well-centered
|
|
|
|
= link_to admin_projects_path do
|
|
|
|
%h3.text-center
|
|
|
|
Projects:
|
|
|
|
= number_with_delimiter(Project.cached_count)
|
|
|
|
%hr
|
|
|
|
= link_to('New project', new_project_path, class: "btn btn-new")
|
|
|
|
.col-sm-4
|
|
|
|
.info-well.dark-well
|
|
|
|
.well-segment.well-centered
|
|
|
|
= link_to admin_users_path do
|
|
|
|
%h3.text-center
|
|
|
|
Users:
|
|
|
|
= number_with_delimiter(User.count)
|
|
|
|
%hr
|
|
|
|
= link_to 'New user', new_admin_user_path, class: "btn btn-new"
|
|
|
|
.col-sm-4
|
|
|
|
.info-well.dark-well
|
|
|
|
.well-segment.well-centered
|
|
|
|
= link_to admin_groups_path do
|
|
|
|
%h3.text-center
|
|
|
|
Groups:
|
|
|
|
= number_with_delimiter(Group.count)
|
|
|
|
%hr
|
|
|
|
= link_to 'New group', new_admin_group_path, class: "btn btn-new"
|
2016-06-14 16:37:02 -04:00
|
|
|
.row
|
|
|
|
.col-md-4
|
2017-06-26 13:53:14 -04:00
|
|
|
.info-well
|
2017-09-15 11:58:18 -04:00
|
|
|
.well-segment.admin-well.admin-well-statistics
|
2017-06-26 13:53:14 -04:00
|
|
|
%h4 Statistics
|
|
|
|
%p
|
|
|
|
Forks
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(ForkedProjectLink.count)
|
|
|
|
%p
|
|
|
|
Issues
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(Issue.count)
|
|
|
|
%p
|
|
|
|
Merge Requests
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(MergeRequest.count)
|
|
|
|
%p
|
|
|
|
Notes
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(Note.count)
|
|
|
|
%p
|
|
|
|
Snippets
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(Snippet.count)
|
|
|
|
%p
|
|
|
|
SSH Keys
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(Key.count)
|
|
|
|
%p
|
|
|
|
Milestones
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(Milestone.count)
|
|
|
|
%p
|
|
|
|
Active Users
|
|
|
|
%span.light.pull-right
|
|
|
|
= number_with_delimiter(User.active.count)
|
2016-06-14 16:37:02 -04:00
|
|
|
.col-md-4
|
2017-06-26 13:53:14 -04:00
|
|
|
.info-well
|
2017-09-15 11:58:18 -04:00
|
|
|
.well-segment.admin-well.admin-well-features
|
2017-06-26 13:53:14 -04:00
|
|
|
%h4 Features
|
|
|
|
- sign_up = "Sign up"
|
2017-11-23 08:16:14 -05:00
|
|
|
%p{ "aria-label" => "#{sign_up}: status " + (allow_signup? ? "on" : "off") }
|
2017-06-26 13:53:14 -04:00
|
|
|
= sign_up
|
|
|
|
%span.light.pull-right
|
2017-11-23 08:16:14 -05:00
|
|
|
= boolean_to_icon allow_signup?
|
2017-06-26 13:53:14 -04:00
|
|
|
- ldap = "LDAP"
|
|
|
|
%p{ "aria-label" => "#{ldap}: status " + (Gitlab.config.ldap.enabled ? "on" : "off") }
|
|
|
|
= ldap
|
|
|
|
%span.light.pull-right
|
|
|
|
= boolean_to_icon Gitlab.config.ldap.enabled
|
|
|
|
- gravatar = "Gravatar"
|
|
|
|
%p{ "aria-label" => "#{gravatar}: status " + (gravatar_enabled? ? "on" : "off") }
|
|
|
|
= gravatar
|
|
|
|
%span.light.pull-right
|
|
|
|
= boolean_to_icon gravatar_enabled?
|
|
|
|
- omniauth = "OmniAuth"
|
|
|
|
%p{ "aria-label" => "#{omniauth}: status " + (Gitlab.config.omniauth.enabled ? "on" : "off") }
|
|
|
|
= omniauth
|
|
|
|
%span.light.pull-right
|
|
|
|
= boolean_to_icon Gitlab.config.omniauth.enabled
|
|
|
|
- reply_email = "Reply by email"
|
|
|
|
%p{ "aria-label" => "#{reply_email}: status " + (Gitlab::IncomingEmail.enabled? ? "on" : "off") }
|
|
|
|
= reply_email
|
|
|
|
%span.light.pull-right
|
|
|
|
= boolean_to_icon Gitlab::IncomingEmail.enabled?
|
|
|
|
- container_reg = "Container Registry"
|
|
|
|
%p{ "aria-label" => "#{container_reg}: status " + (Gitlab.config.registry.enabled ? "on" : "off") }
|
|
|
|
= container_reg
|
|
|
|
%span.light.pull-right
|
|
|
|
= boolean_to_icon Gitlab.config.registry.enabled
|
|
|
|
- gitlab_pages = 'GitLab Pages'
|
|
|
|
- gitlab_pages_enabled = Gitlab.config.pages.enabled
|
|
|
|
%p{ "aria-label" => "#{gitlab_pages}: status " + (gitlab_pages_enabled ? "on" : "off") }
|
|
|
|
= gitlab_pages
|
|
|
|
%span.light.pull-right
|
|
|
|
= boolean_to_icon gitlab_pages_enabled
|
|
|
|
- gitlab_shared_runners = 'Shared Runners'
|
|
|
|
- gitlab_shared_runners_enabled = Gitlab.config.gitlab_ci.shared_runners_enabled
|
|
|
|
%p{ "aria-label" => "#{gitlab_shared_runners}: status " + (gitlab_shared_runners_enabled ? "on" : "off") }
|
|
|
|
= gitlab_shared_runners
|
|
|
|
%span.light.pull-right
|
|
|
|
= boolean_to_icon gitlab_shared_runners_enabled
|
2016-06-14 16:37:02 -04:00
|
|
|
.col-md-4
|
2017-06-26 13:53:14 -04:00
|
|
|
.info-well
|
|
|
|
.well-segment.admin-well
|
|
|
|
%h4
|
|
|
|
Components
|
2018-02-02 13:39:55 -05:00
|
|
|
- if Gitlab::CurrentSettings.version_check_enabled
|
2017-06-26 13:53:14 -04:00
|
|
|
.pull-right
|
|
|
|
= version_status_badge
|
|
|
|
%p
|
|
|
|
GitLab
|
|
|
|
%span.pull-right
|
|
|
|
= Gitlab::VERSION
|
|
|
|
%p
|
|
|
|
GitLab Shell
|
|
|
|
%span.pull-right
|
|
|
|
= Gitlab::Shell.new.version
|
|
|
|
%p
|
|
|
|
GitLab Workhorse
|
|
|
|
%span.pull-right
|
|
|
|
= gitlab_workhorse_version
|
|
|
|
%p
|
|
|
|
GitLab API
|
|
|
|
%span.pull-right
|
|
|
|
= API::API::version
|
2017-09-04 16:52:00 -04:00
|
|
|
- if Gitlab.config.pages.enabled
|
|
|
|
%p
|
|
|
|
GitLab Pages
|
|
|
|
%span.pull-right
|
|
|
|
= Gitlab::Pages::VERSION
|
2017-06-26 13:53:14 -04:00
|
|
|
%p
|
|
|
|
Ruby
|
|
|
|
%span.pull-right
|
|
|
|
#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
|
|
|
|
%p
|
|
|
|
Rails
|
|
|
|
%span.pull-right
|
|
|
|
#{Rails::VERSION::STRING}
|
|
|
|
%p
|
|
|
|
= Gitlab::Database.adapter_name
|
|
|
|
%span.pull-right
|
|
|
|
= Gitlab::Database.version
|
2018-01-30 05:11:47 -05:00
|
|
|
%p
|
|
|
|
= link_to "Gitaly Servers", admin_gitaly_servers_path
|
2017-06-26 13:53:14 -04:00
|
|
|
.row
|
2016-06-14 16:37:02 -04:00
|
|
|
.col-md-4
|
2017-06-26 13:53:14 -04:00
|
|
|
.info-well
|
|
|
|
.well-segment.admin-well
|
|
|
|
%h4 Latest projects
|
|
|
|
- @projects.each do |project|
|
|
|
|
%p
|
2018-03-05 08:45:35 -05:00
|
|
|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project], class: 'str-truncated-60'
|
2017-06-26 13:53:14 -04:00
|
|
|
%span.light.pull-right
|
|
|
|
#{time_ago_with_tooltip(project.created_at)}
|
2016-06-14 16:37:02 -04:00
|
|
|
.col-md-4
|
2017-06-26 13:53:14 -04:00
|
|
|
.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
|
|
|
|
%span.light.pull-right
|
|
|
|
#{time_ago_with_tooltip(user.created_at)}
|
2016-06-14 16:37:02 -04:00
|
|
|
.col-md-4
|
2017-06-26 13:53:14 -04:00
|
|
|
.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
|
|
|
|
%span.light.pull-right
|
|
|
|
#{time_ago_with_tooltip(group.created_at)}
|