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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
263849f6
Commit
263849f6
authored
Nov 08, 2018
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply to MRs
parent
c3f93385
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
15 deletions
+23
-15
app/views/shared/empty_states/_merge_requests.html.haml
app/views/shared/empty_states/_merge_requests.html.haml
+12
-9
changelogs/unreleased/53326-improve-issues-empty-state.yml
changelogs/unreleased/53326-improve-issues-empty-state.yml
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+0
-3
spec/features/merge_request/user_sees_empty_state_spec.rb
spec/features/merge_request/user_sees_empty_state_spec.rb
+10
-2
No files found.
app/views/shared/empty_states/_merge_requests.html.haml
View file @
263849f6
...
...
@@ -8,16 +8,19 @@
=
image_tag
'illustrations/merge_requests.svg'
.col-12
.text-content
-
if
has_button
-
if
has_filter_bar_param?
%h4
.text-center
=
_
(
"Sorry, your filter produced no results"
)
%p
=
_
(
"To widen your search, change or remove filters in the filter bar above"
)
-
else
%h4
=
_
(
"Merge requests are a place to propose changes you've made to a project and discuss those changes with others"
)
%p
=
_
(
"Interested parties can even contribute by pushing commits if they want to."
)
-
if
has_button
.text-center
-
if
project_select_button
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
_
(
'New merge request'
),
type: :merge_requests
,
with_feature_enabled:
'merge_requests'
-
else
=
link_to
_
(
'New merge request'
),
button_path
,
class:
'btn btn-success'
,
title:
_
(
'New merge request'
),
id:
'new_merge_request_link'
-
else
%h4
.text-center
=
_
(
"There are no merge requests to show"
)
changelogs/unreleased/53326-improve-issues-empty-state.yml
View file @
263849f6
---
title
:
Show different empty state for filtered issues
title
:
Show different empty state for filtered issues
and MRs
merge_request
:
22775
author
:
Heinrich Lee Yu
type
:
changed
locale/gitlab.pot
View file @
263849f6
...
...
@@ -6194,9 +6194,6 @@ msgstr ""
msgid "There are no labels yet"
msgstr ""
msgid "There are no merge requests to show"
msgstr ""
msgid "There are no projects shared with this group yet"
msgstr ""
...
...
spec/features/merge_request/user_sees_empty_state_spec.rb
View file @
263849f6
...
...
@@ -19,12 +19,20 @@ describe 'Merge request > User sees empty state' do
context
'if there are merge requests'
do
before
do
create
(
:merge_request
,
source_project:
project
)
visit
project_merge_requests_path
(
project
)
end
it
'does not show an empty state'
do
visit
project_merge_requests_path
(
project
)
expect
(
page
).
not_to
have_selector
(
'.empty-state'
)
end
it
'shows empty state when filter results empty'
do
visit
project_merge_requests_path
(
project
,
milestone_title:
"1.0"
)
expect
(
page
).
to
have_selector
(
'.empty-state'
)
expect
(
page
).
to
have_content
(
'Sorry, your filter produced no results'
)
expect
(
page
).
to
have_content
(
'To widen your search, change or remove filters in the filter bar above'
)
end
end
end
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