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
8f6707cc
Commit
8f6707cc
authored
Sep 27, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show category tabs on list even when no epics exist in the group
parent
4669161e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
ee/app/views/groups/epics/index.html.haml
ee/app/views/groups/epics/index.html.haml
+6
-9
ee/spec/features/epics/epics_list_spec.rb
ee/spec/features/epics/epics_list_spec.rb
+11
-1
No files found.
ee/app/views/groups/epics/index.html.haml
View file @
8f6707cc
-
has_filters_applied
=
params
[
:label_name
].
present?
||
params
[
:author_username
].
present?
||
params
[
:search
].
present?
-
page_title
"Epics"
-
if
has_filters_applied
||
@epics
.
to_a
.
any?
.top-area
=
render
'shared/issuable/epic_nav'
,
type: :epics
.nav-controls
-
if
can?
(
current_user
,
:create_epic
,
@group
)
#new-epic-app
{
data:
{
endpoint:
request
.
url
,
'align-right'
=>
true
}
}
.top-area
=
render
'shared/issuable/epic_nav'
,
type: :epics
.nav-controls
-
if
can?
(
current_user
,
:create_epic
,
@group
)
#new-epic-app
{
data:
{
endpoint:
request
.
url
,
'align-right'
=>
true
}
}
=
render
'shared/epic/search_bar'
,
type: :epics
=
render
'shared/epic/search_bar'
,
type: :epics
-
if
@epics
.
to_a
.
any?
=
render
'shared/epics'
...
...
ee/spec/features/epics/epics_list_spec.rb
View file @
8f6707cc
...
...
@@ -119,13 +119,23 @@ describe 'epics list', :js do
end
context
'when no epics exist for the group'
do
it
'renders the empty list page'
do
before
do
visit
group_epics_path
(
group
)
end
it
'renders the empty list page'
do
within
(
'#content-body'
)
do
expect
(
find
(
'.empty-state h4'
))
.
to
have_content
(
'Epics let you manage your portfolio of projects more efficiently and with less effort'
)
end
end
it
'shows epics tabs for each status type'
do
page
.
within
(
'.epics-state-filters'
)
do
expect
(
page
).
to
have_selector
(
'li > a#state-opened'
)
expect
(
page
).
to
have_selector
(
'li > a#state-closed'
)
expect
(
page
).
to
have_selector
(
'li > a#state-all'
)
end
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