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
e8cedea0
Commit
e8cedea0
authored
7 years ago
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show link to Epics list filtered by label
parent
6dfed6e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
app/views/shared/_label.html.haml
app/views/shared/_label.html.haml
+5
-0
app/views/shared/_label_row.html.haml
app/views/shared/_label_row.html.haml
+4
-0
No files found.
app/views/shared/_label.html.haml
View file @
e8cedea0
...
...
@@ -2,6 +2,7 @@
-
status
=
label_subscription_status
(
label
,
@project
).
inquiry
if
current_user
-
subject
=
local_assigns
[
:subject
]
-
toggle_subscription_path
=
toggle_subscription_label_path
(
label
,
@project
)
if
current_user
-
show_label_epics_link
=
@group
&
.
feature_available?
(
:epics
)
-
show_label_merge_requests_link
=
show_label_issuables_link?
(
label
,
:merge_requests
,
project:
@project
)
-
show_label_issues_link
=
show_label_issuables_link?
(
label
,
:issues
,
project:
@project
)
...
...
@@ -14,6 +15,10 @@
=
icon
(
'caret-down'
)
.dropdown-menu.dropdown-menu-align-right
%ul
-
if
show_label_epics_link
%li
=
link_to
group_epics_path
(
@group
,
label_name
:[
label
.
name
])
do
View epics
-
if
show_label_merge_requests_link
%li
=
link_to_label
(
label
,
subject:
subject
,
type: :merge_request
)
do
...
...
This diff is collapsed.
Click to expand it.
app/views/shared/_label_row.html.haml
View file @
e8cedea0
-
subject
=
local_assigns
[
:subject
]
-
show_label_epics_link
=
@group
&
.
feature_available?
(
:epics
)
-
show_label_issues_link
=
show_label_issuables_link?
(
label
,
:issues
,
project:
@project
)
-
show_label_merge_requests_link
=
show_label_issuables_link?
(
label
,
:merge_requests
,
project:
@project
)
...
...
@@ -23,6 +24,9 @@
.description-text
=
markdown_field
(
label
,
:description
)
.hidden-xs.hidden-sm
-
if
show_label_epics_link
=
link_to
'Epics'
,
group_epics_path
(
@group
,
label_name
:[
label
.
name
])
·
-
if
show_label_issues_link
=
link_to_label
(
label
,
subject:
subject
)
{
'Issues'
}
-
if
show_label_merge_requests_link
...
...
This diff is collapsed.
Click to expand it.
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