Commit cef45553 authored by Clement Ho's avatar Clement Ho

Merge branch '7926-empty-state-for-packages-screen' into 'master'

Resolve "Empty state for Packages screen"

Closes #7926

See merge request gitlab-org/gitlab-ee!8583
parents dc46ae6b c2efab2d
......@@ -40,5 +40,12 @@
= icon('trash')
= paginate @packages, theme: "gitlab"
- else
.nothing-here-block
= _('No packages stored for this project.')
.row.empty-state
.col-12
.svg-content= image_tag 'illustrations/no-packages.svg'
.text-content
%h4.text-center= _('There are no packages yet')
%p
- no_packages_url = help_page_path('user/project/packages/maven_repository.html')
- no_packages_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: no_packages_url }
= _('Learn how to %{no_packages_link_start}publish and share your Maven packages%{no_packages_link_end} with GitLab. Additional package types will be supported in future releases.').html_safe % { no_packages_link_start: no_packages_link_start, no_packages_link_end: '</a>'.html_safe }
---
title: Update Empty state for Packages screen
merge_request: 8583
author:
type: other
......@@ -13,7 +13,7 @@ describe 'Packages' do
it 'shows no packages message' do
visit_project_packages
expect(page).to have_content 'No packages stored for this project.'
expect(page).to have_content 'There are no packages yet'
end
end
......
......@@ -4882,6 +4882,9 @@ msgstr ""
msgid "Latest changes"
msgstr ""
msgid "Learn how to %{no_packages_link_start}publish and share your Maven packages%{no_packages_link_end} with GitLab. Additional package types will be supported in future releases."
msgstr ""
msgid "Learn more"
msgstr ""
......@@ -5669,9 +5672,6 @@ msgstr ""
msgid "No other labels with such name or description"
msgstr ""
msgid "No packages stored for this project."
msgstr ""
msgid "No preview for this file type"
msgstr ""
......@@ -8307,6 +8307,9 @@ msgstr ""
msgid "There are no labels yet"
msgstr ""
msgid "There are no packages yet"
msgstr ""
msgid "There are no projects shared with this group yet"
msgstr ""
......
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