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
21342bb8
Commit
21342bb8
authored
Nov 08, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add epics to nav bar
parent
c34fdda5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
app/views/layouts/nav/sidebar/_group.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
+17
-0
ee/app/views/groups/epics/_epics.html.haml
ee/app/views/groups/epics/_epics.html.haml
+2
-0
No files found.
app/views/layouts/nav/sidebar/_group.html.haml
View file @
21342bb8
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
,
non_archived:
true
).
execute
-
epics
=
EpicsFinder
.
new
(
current_user
,
group_id:
@group
.
id
).
execute
-
issues_sub_menu_items
=
[
'groups#issues'
,
'labels#index'
,
'milestones#index'
]
-
if
@group
.
feature_available?
(
:group_issue_boards
)
...
...
@@ -43,6 +44,22 @@
%span
Contribution Analytics
-# TODO: Add the flag check to only show epics if available
-# TODO: Add epic icon
=
nav_link
(
path:
'groups#epics'
)
do
=
link_to
group_epics_path
(
@group
)
do
.nav-icon-container
=
sprite_icon
(
'git-merge'
)
%span
.nav-item-name
Epics
%span
.badge.count
=
number_with_delimiter
(
epics
.
count
)
%ul
.sidebar-sub-level-items.is-fly-out-only
=
nav_link
(
path:
'groups#epics'
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
link_to
group_epics_path
(
@group
)
do
%strong
.fly-out-top-item-name
#{
_
(
'Epic'
)
}
%span
.badge.count.epic_counter.fly-out-badge
=
number_with_delimiter
(
epics
.
count
)
=
nav_link
(
path:
issues_sub_menu_items
)
do
=
link_to
issues_group_path
(
@group
)
do
.nav-icon-container
...
...
ee/app/views/groups/epics/_epics.html.haml
View file @
21342bb8
-
page_title
"Epics"
%ul
.content-list.issues-list.issuable-list
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