Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bbbb056b
Commit
bbbb056b
authored
Feb 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
0f839154
cd1a907b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
6 deletions
+34
-6
app/views/dashboard/projects/_starred_empty_state.html.haml
app/views/dashboard/projects/_starred_empty_state.html.haml
+9
-0
app/views/dashboard/projects/starred.html.haml
app/views/dashboard/projects/starred.html.haml
+4
-5
changelogs/unreleased/34555-empty-state-for-starred-projects.yml
...ogs/unreleased/34555-empty-state-for-starred-projects.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+6
-0
spec/features/dashboard/projects_spec.rb
spec/features/dashboard/projects_spec.rb
+10
-1
No files found.
app/views/dashboard/projects/_starred_empty_state.html.haml
0 → 100644
View file @
bbbb056b
.row.empty-state
.col-12
.svg-content.svg-250
=
image_tag
'illustrations/starred_empty.svg'
.text-content
%h4
.text-center
=
s_
(
"StarredProjectsEmptyState|You don't have starred projects yet."
)
%p
.text-secondary
=
s_
(
"StarredProjectsEmptyState|Visit a project page and press on a star icon. Then, you can find the project on this page."
)
app/views/dashboard/projects/starred.html.haml
View file @
bbbb056b
-
@hide_top_links
=
true
-
@hide_top_links
=
true
-
@no_container
=
true
-
@no_container
=
true
-
breadcrumb_title
"Projects"
-
breadcrumb_title
_
(
"Projects"
)
-
page_title
"Starred Projects"
-
page_title
_
(
"Starred Projects"
)
-
header_title
"Projects"
,
dashboard_projects_path
-
header_title
_
(
"Projects"
)
,
dashboard_projects_path
=
render_if_exists
"shared/gold_trial_callout"
=
render_if_exists
"shared/gold_trial_callout"
...
@@ -13,5 +13,4 @@
...
@@ -13,5 +13,4 @@
-
if
params
[
:filter_projects
]
||
any_projects?
(
@projects
)
-
if
params
[
:filter_projects
]
||
any_projects?
(
@projects
)
=
render
'projects'
=
render
'projects'
-
else
-
else
%h3
.page-title
You don't have starred projects yet
=
render
'starred_empty_state'
%p
.slead
Visit project page and press on star icon and it will appear on this page.
changelogs/unreleased/34555-empty-state-for-starred-projects.yml
0 → 100644
View file @
bbbb056b
---
title
:
Improve empty state for starred projects
merge_request
:
25138
author
:
type
:
changed
locale/gitlab.pot
View file @
bbbb056b
...
@@ -9180,6 +9180,12 @@ msgstr ""
...
@@ -9180,6 +9180,12 @@ msgstr ""
msgid "Starred projects"
msgid "Starred projects"
msgstr ""
msgstr ""
msgid "StarredProjectsEmptyState|Visit a project page and press on a star icon. Then, you can find the project on this page."
msgstr ""
msgid "StarredProjectsEmptyState|You don't have starred projects yet."
msgstr ""
msgid "Stars"
msgid "Stars"
msgstr ""
msgstr ""
...
...
spec/features/dashboard/projects_spec.rb
View file @
bbbb056b
...
@@ -116,7 +116,16 @@ describe 'Dashboard Projects' do
...
@@ -116,7 +116,16 @@ describe 'Dashboard Projects' do
end
end
end
end
context
'when on Starred projects tab'
do
context
'when on Starred projects tab'
,
:js
do
it
'shows the empty state when there are no starred projects'
do
visit
(
starred_dashboard_projects_path
)
element
=
page
.
find
(
'.row.empty-state'
)
expect
(
element
).
to
have_content
(
"You don't have starred projects yet."
)
expect
(
element
.
find
(
'.svg-content img'
)[
'src'
]).
to
have_content
(
'illustrations/starred_empty'
)
end
it
'shows only starred projects'
do
it
'shows only starred projects'
do
user
.
toggle_star
(
project2
)
user
.
toggle_star
(
project2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment