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
Léo-Paul Géneau
gitlab-ce
Commits
3f2d8248
Commit
3f2d8248
authored
Feb 24, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing partials!
parent
96058605
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
app/views/shared/milestones/_record.html.haml
app/views/shared/milestones/_record.html.haml
+17
-0
app/views/shared/milestones/_records.html.haml
app/views/shared/milestones/_records.html.haml
+14
-0
No files found.
app/views/shared/milestones/_record.html.haml
0 → 100644
View file @
3f2d8248
-# @project is present when viewing Project's milestone
-
project
=
@project
||
record
.
project
%li
{
id:
dom_id
(
record
,
'sortable'
),
class:
"#{dom_class(record)}-row"
,
'data-iid'
=>
record
.
iid
,
'data-url'
=>
polymorphic_path
(
record
)
}
%span
-
if
show_project_name
%strong
#{
project
.
name
}
·
-
elsif
show_full_project_name
%strong
#{
project
.
name_with_namespace
}
·
=
link_to_gfm
record
.
title
,
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
record
],
title:
record
.
title
%div
{
class:
"#{dom_class(record)}-detail"
}
=
link_to
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
record
]
do
%span
{
class:
"#{dom_class(record)}-number"
}
##{record.iid}
-
record
.
labels
.
each
do
|
label
|
=
render_colored_label
(
label
)
-
if
record
.
assignee
=
image_tag
avatar_icon
(
record
.
assignee
,
16
),
class:
"avatar s16"
,
alt:
''
app/views/shared/milestones/_records.html.haml
0 → 100644
View file @
3f2d8248
-
show_counter
=
local_assigns
.
fetch
(
:show_counter
,
false
)
-
primary
=
local_assigns
.
fetch
(
:primary
,
false
)
-
panel_class
=
primary
?
'panel-primary'
:
'panel-default'
.panel
{
class:
panel_class
}
.panel-heading
=
title
-
if
show_counter
.pull-right
=
records
.
size
-
class_prefix
=
dom_class
(
records
).
pluralize
%ul
{
class:
"well-list #{class_prefix}-sortable-list"
,
id:
"#{class_prefix}-list-#{id}"
,
"data-state"
=>
id
}
-
records
.
sort_by
(
&
:position
).
each
do
|
record
|
=
render
'shared/milestones/record'
,
record:
record
,
show_project_name:
show_project_name
,
show_full_project_name:
show_full_project_name
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