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
iv
gitlab-ce
Commits
c91554de
Commit
c91554de
authored
Feb 24, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add link with filter by milestone for labels and avatar.
Closes #13628
parent
baa782ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
app/views/shared/milestones/_record.html.haml
app/views/shared/milestones/_record.html.haml
+8
-2
No files found.
app/views/shared/milestones/_record.html.haml
View file @
c91554de
-# @project is present when viewing Project's milestone
-# @project is present when viewing Project's milestone
-
project
=
@project
||
record
.
project
-
project
=
@project
||
record
.
project
-
record_type
=
record
.
class
.
table_name
-
base_url_args
=
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
record_type
]
%li
{
id:
dom_id
(
record
,
'sortable'
),
class:
"#{dom_class(record)}-row"
,
'data-iid'
=>
record
.
iid
,
'data-url'
=>
polymorphic_path
(
record
)
}
%li
{
id:
dom_id
(
record
,
'sortable'
),
class:
"#{dom_class(record)}-row"
,
'data-iid'
=>
record
.
iid
,
'data-url'
=>
polymorphic_path
(
record
)
}
%span
%span
...
@@ -11,7 +13,11 @@
...
@@ -11,7 +13,11 @@
%div
{
class:
"#{dom_class(record)}-detail"
}
%div
{
class:
"#{dom_class(record)}-detail"
}
=
link_to
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
record
]
do
=
link_to
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
record
]
do
%span
{
class:
"#{dom_class(record)}-number"
}
##{record.iid}
%span
{
class:
"#{dom_class(record)}-number"
}
##{record.iid}
-
record
.
labels
.
each
do
|
label
|
-
record
.
labels
.
each
do
|
label
|
%a
{
href:
polymorphic_path
(
base_url_args
,
{
milestone_title:
@milestone
.
title
,
label_name:
label
.
title
,
state:
'all'
})
}
<
=
render_colored_label
(
label
)
=
render_colored_label
(
label
)
-
if
record
.
assignee
-
if
record
.
assignee
=
image_tag
avatar_icon
(
record
.
assignee
,
16
),
class:
"avatar s16"
,
alt:
''
%a
{
href:
polymorphic_path
(
base_url_args
,
{
milestone_title:
@milestone
.
title
,
assignee_id:
record
.
assignee_id
,
state:
'all'
})
}
=
image_tag
(
avatar_icon
(
record
.
assignee
,
16
),
class:
"avatar s16"
,
alt:
''
)
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