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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
|
- breadcrumb_title _("Dashboard")
- page_title _("Dashboard")
= render_if_exists 'shared/manual_quarterly_reconciliation_banner'
= render_if_exists 'shared/submit_license_usage_data_banner'
= render_if_exists 'shared/qrtly_reconciliation_alert'
= render 'admin/dashboard/security_newsletter_callout'
= render 'admin/dashboard/web_ide_oauth_callback_mismatch_callout'
- if show_transition_to_jihu_callout?
.js-jh-transition-banner{ data: { feature_name: Users::CalloutsHelper::TRANSITION_TO_JIHU_CALLOUT,
user_preferred_language: current_user.preferred_language} }
- if @notices
- @notices.each do |notice|
.js-vue-alert{ 'v-cloak': true, data: { variant: notice[:type],
dismissible: true.to_s } }
= notice[:message].html_safe
%h1.gl-sr-only= page_title
- if @license.present?
.license-panel.gl-mt-5
= render_if_exists 'admin/licenses/summary'
= render_if_exists 'admin/licenses/breakdown'
.admin-dashboard.gl-mt-3{ data: { event_tracking_load: 'true', event_tracking: 'view_admin_dashboard_pageload' } }
%h2.gl-heading-2= _('Instance overview')
.gl-grid.md:gl-grid-cols-2.lg:gl-grid-cols-3.gl-gap-5
- component_params = { card_options: { class: 'gl-h-full' }, header_options: { class: 'gl-flex gl-justify-between gl-items-start' }, body_options: { class: 'gl-h-full gl-pt-0' } }
= render Pajamas::CardComponent.new(**component_params) do |c|
- c.with_header do
%h3.gl-self-center.gl-text-base.gl-inline-flex.gl-gap-2.gl-items-center.gl-m-0
- approximate_projects_count = approximate_count_with_delimiters(@counts, Project)
= s_('AdminArea|Projects')
= render Pajamas::BadgeComponent.new(approximate_projects_count, variant: :muted)
= render Pajamas::ButtonComponent.new(href: new_project_path, size: :small) do
= s_('AdminArea|New project')
- c.with_body do
.gl-flex.gl-flex-col.gl-h-full
- @projects.each do |project|
.gl-flex.gl-py-4{ class: ('gl-border-b' if @projects.last != project) }
.gl-mr-auto.gl-overflow-hidden.gl-text-ellipsis
= link_to project.full_name, admin_project_path(project)
%span.gl-whitespace-nowrap.gl-text-right.gl-text-sm.gl-text-subtle
#{time_ago_with_tooltip(project.created_at)}
.gl-grow
.gl-pt-4
= render Pajamas::ButtonComponent.new(href: admin_projects_path(sort: 'created_desc'), block: true) do
= s_('AdminArea|View latest projects')
= render Pajamas::CardComponent.new(**component_params) do |c|
- c.with_header do
%h3.gl-self-center.gl-text-base.gl-inline-flex.gl-gap-2.gl-items-center.gl-m-0
= s_('AdminArea|Total Users')
= render Pajamas::BadgeComponent.new(approximate_count_with_delimiters(@counts, User), variant: :muted)
= render Pajamas::ButtonComponent.new(href: new_admin_user_path, size: :small) do
= s_('AdminArea|New user')
- c.with_body do
.gl-flex.gl-flex-col.gl-h-full
- @users.each do |user|
.gl-flex.gl-py-4{ class: ('gl-border-b' if @users.last != user) }
.gl-mr-auto.gl-overflow-hidden.gl-text-ellipsis
= link_to [:admin, user] do
= user.name
%span.gl-whitespace-nowrap.gl-text-right.gl-text-sm.gl-text-subtle
#{time_ago_with_tooltip(user.created_at)}
.gl-grow
.gl-flex.gl-pt-4.gl-gap-3
= render Pajamas::ButtonComponent.new(href: admin_users_path(sort: 'created_desc'), block: true) do
= s_('AdminArea|View latest users')
= render Pajamas::ButtonComponent.new(href: admin_dashboard_stats_path, block: true, button_options: { class: '!gl-mt-0'}) do
= s_('AdminArea|Users statistics')
= render Pajamas::CardComponent.new(**component_params) do |c|
- c.with_header do
%h3.gl-self-center.gl-text-base.gl-inline-flex.gl-gap-2.gl-items-center.gl-m-0
- approximate_groups_count = approximate_count_with_delimiters(@counts, Group)
= s_('AdminArea|Groups')
= render Pajamas::BadgeComponent.new(approximate_groups_count, variant: :muted)
= render Pajamas::ButtonComponent.new(href: new_admin_group_path, size: :small) do
= s_('AdminArea|New group')
- c.with_body do
.gl-flex.gl-flex-col.gl-h-full
- @groups.each do |group|
.gl-flex.gl-py-4{ class: ('gl-border-b' if @groups.last != group) }
.gl-mr-auto.gl-overflow-hidden.gl-text-ellipsis
= link_to [:admin, group] do
= group.full_name
%span.gl-whitespace-nowrap.gl-text-right.gl-text-sm.gl-text-subtle
#{time_ago_with_tooltip(group.created_at)}
.gl-grow
.gl-pt-4
= render Pajamas::ButtonComponent.new(href: admin_groups_path(sort: 'created_desc'), block: true) do
= s_('AdminArea|View latest groups')
#js-admin-statistics-container
= render Pajamas::CardComponent.new(card_options: { class: 'gl-h-full' }, body_options: { class: 'gl-h-full gl-py-0' }) do |c|
- c.with_header do
%h3.gl-self-center.gl-text-base.gl-inline-flex.gl-gap-2.gl-items-center.gl-m-0
= s_('AdminArea|Features')
- c.with_body do
= 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/index.md'))
= 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?)
= feature_entry(_('Reply by email'),
enabled: Gitlab::Email::IncomingEmail.enabled?,
doc_href: help_page_path('administration/reply_by_email.md'))
= 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)
= feature_entry(_('GitLab Pages'),
enabled: Gitlab.config.pages.enabled,
doc_href: help_instance_configuration_url)
= feature_entry(_('Instance Runners'),
href: admin_runners_path,
enabled: Gitlab.config.gitlab_ci.shared_runners_enabled,
last: true)
= render Pajamas::CardComponent.new(card_options: { class: 'gl-h-full' }, body_options: { class: 'gl-h-full gl-py-0' }) do |c|
- c.with_header do
%h3.gl-m-0.gl-inline-flex.gl-items-center.gl-gap-2.gl-self-center.gl-text-base
= s_('AdminArea|Components')
- c.with_body do
- if show_version_check?
.gl-min-h-9.gl-py-4.gl-border-b
.js-gitlab-version-check-badge{ data: { "size": "lg", "actionable": "true", "version": gitlab_version_check.to_json } }
= link_to('CHANGELOG', 'https://gitlab.com/gitlab-org/gitlab/-/blob/master/CHANGELOG.md', target: 'blank', rel: 'noopener noreferrer', class: 'gl-float-right gl-font-monospace' )
%p.gl-py-4.gl-m-0.gl-border-b
= _('GitLab version')
%span.gl-float-right.gl-font-monospace
= link_to_version
%p.gl-py-4.gl-m-0.gl-border-b
= _('GitLab Shell')
%span.gl-float-right.gl-font-monospace
= Gitlab::Shell.version
%p.gl-py-4.gl-m-0.gl-border-b
= _('GitLab Workhorse')
%span.gl-float-right.gl-font-monospace
= gitlab_workhorse_version
%p.gl-py-4.gl-m-0.gl-border-b
= _('GitLab API')
%span.gl-float-right.gl-font-monospace
= API::API::version
- if Gitlab.config.pages.enabled
%p.gl-py-4.gl-m-0.gl-border-b
= _('GitLab Pages')
%span.gl-float-right.gl-truncate-end.gl-truncate-start.gl-font-monospace{ class: 'gl-max-w-1/2' , data: { toggle: 'tooltip' }, title: Gitlab::Pages::VERSION }
= Gitlab::Pages::VERSION
- if defined?(@kas_server_info)
%p.gl-py-4.gl-m-0.gl-border-b
= _('GitLab KAS')
%span.gl-float-right.gl-font-monospace
- if @kas_server_info.retrieved_server_info?
%span
= @kas_server_info.version
%small
= link_to(@kas_server_info.git_ref_for_display, @kas_server_info.git_ref_url)
- else
= s_('AdminArea|Unknown')
%span.has-tooltip{ title: s_('AdminArea|Failed to fetch version from KAS') }
= sprite_icon('question-o')
= render_if_exists 'admin/dashboard/geo'
%p.gl-py-4.gl-m-0.gl-border-b
= _('Ruby')
%span.gl-float-right.gl-font-monospace
#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
%p.gl-py-4.gl-m-0.gl-border-b
= _('Rails')
%span.gl-float-right.gl-font-monospace
#{Rails::VERSION::STRING}
- database_versions.each do |database_name, database|
%p.gl-py-4.gl-m-0.gl-border-b
#{database[:adapter_name]} (#{database_name})
%span.gl-float-right.gl-font-monospace
= database[:version]
%p.gl-py-4.gl-m-0.gl-border-b
= _('Redis')
%span.gl-float-right.gl-font-monospace
= @redis_versions&.join(", ")
%p.gl-py-4.gl-m-0
= _("Gitaly servers")
= render Pajamas::ButtonComponent.new(icon: 'settings', category: :tertiary, size: :small, href: admin_gitaly_servers_path, button_options: { title: _('Configure'), class: 'gl-ml-2 has-tooltip gl-float-right', aria: { label: _('Configure') } })
|