Commit b3baf6f5 authored by GitLab Bot's avatar GitLab Bot

Add latest changes from gitlab-org/gitlab@master

parent 4682f501
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
class Admin::DashboardController < Admin::ApplicationController class Admin::DashboardController < Admin::ApplicationController
include CountHelper include CountHelper
helper_method :show_license_breakdown?
COUNTED_ITEMS = [Project, User, Group].freeze COUNTED_ITEMS = [Project, User, Group].freeze
...@@ -13,6 +14,10 @@ class Admin::DashboardController < Admin::ApplicationController ...@@ -13,6 +14,10 @@ class Admin::DashboardController < Admin::ApplicationController
@groups = Group.order_id_desc.with_route.limit(10) @groups = Group.order_id_desc.with_route.limit(10)
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
def show_license_breakdown?
false
end
end end
Admin::DashboardController.prepend_if_ee('EE::Admin::DashboardController') Admin::DashboardController.prepend_if_ee('EE::Admin::DashboardController')
- breadcrumb_title "Dashboard" - breadcrumb_title "Dashboard"
= render_if_exists 'admin/licenses/breakdown', license: @license - if show_license_breakdown?
= render_if_exists 'admin/licenses/breakdown', license: @license
.admin-dashboard.prepend-top-default .admin-dashboard.prepend-top-default
.row .row
......
---
title: Embed Jaeger in Gitlab UI
merge_request:
author:
type: changed
---
title: Hide license breakdown in /admin if user count is high
merge_request: 18825
author:
type: performance
...@@ -7922,6 +7922,9 @@ msgstr "" ...@@ -7922,6 +7922,9 @@ msgstr ""
msgid "GitLab single sign on URL" msgid "GitLab single sign on URL"
msgstr "" msgstr ""
msgid "GitLab uses %{jaeger_link} to monitor distributed systems."
msgstr ""
msgid "GitLab will run a background job that will produce pseudonymized CSVs of the GitLab database that will be uploaded to your configured object storage directory." msgid "GitLab will run a background job that will produce pseudonymized CSVs of the GitLab database that will be uploaded to your configured object storage directory."
msgstr "" msgstr ""
...@@ -19289,6 +19292,9 @@ msgstr "" ...@@ -19289,6 +19292,9 @@ msgstr ""
msgid "Your new personal access token has been created." msgid "Your new personal access token has been created."
msgstr "" msgstr ""
msgid "Your password isn't required to view this page. If a password or any other personal details are requested, please contact your administrator to report abuse."
msgstr ""
msgid "Your password reset token has expired." msgid "Your password reset token has expired."
msgstr "" msgstr ""
......
...@@ -17,6 +17,7 @@ describe 'admin/dashboard/index.html.haml' do ...@@ -17,6 +17,7 @@ describe 'admin/dashboard/index.html.haml' do
allow(view).to receive(:admin?).and_return(true) allow(view).to receive(:admin?).and_return(true)
allow(view).to receive(:current_application_settings).and_return(Gitlab::CurrentSettings.current_application_settings) allow(view).to receive(:current_application_settings).and_return(Gitlab::CurrentSettings.current_application_settings)
allow(view).to receive(:show_license_breakdown?).and_return(false)
end end
it "shows version of GitLab Workhorse" do it "shows version of GitLab Workhorse" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment