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
Boxiang Sun
gitlab-ce
Commits
834b5d49
Commit
834b5d49
authored
Feb 23, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor Merge Requests tab into a custom partial
parent
e805becf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
21 deletions
+10
-21
app/views/groups/milestones/show.html.haml
app/views/groups/milestones/show.html.haml
+1
-12
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+1
-9
app/views/shared/milestones/_participants_tab.html.haml
app/views/shared/milestones/_participants_tab.html.haml
+8
-0
No files found.
app/views/groups/milestones/show.html.haml
View file @
834b5d49
...
@@ -76,15 +76,4 @@
...
@@ -76,15 +76,4 @@
=
render
'shared/milestones/merge_requests_tab'
,
unassigned:
@milestone
.
opened_merge_requests
.
unassigned
,
assigned:
@milestone
.
opened_merge_requests
.
assigned
,
closed:
@milestone
.
merge_requests
.
closed
,
merged:
@milestone
.
merge_requests
.
merged
=
render
'shared/milestones/merge_requests_tab'
,
unassigned:
@milestone
.
opened_merge_requests
.
unassigned
,
assigned:
@milestone
.
opened_merge_requests
.
assigned
,
closed:
@milestone
.
merge_requests
.
closed
,
merged:
@milestone
.
merge_requests
.
merged
.tab-pane
#tab-participants
.tab-pane
#tab-participants
.gray-content-block.middle-block
=
render
'shared/milestones/participants_tab'
,
users:
@milestone
.
participants
.oneline
All participants to this milestone
%ul
.bordered-list
-
@milestone
.
participants
.
each
do
|
user
|
%li
=
link_to
user
,
title:
user
.
name
,
class:
"darken"
do
=
image_tag
avatar_icon
(
user
,
32
),
class:
"avatar s32"
%strong
=
truncate
(
user
.
name
,
lenght:
40
)
%br
%small
.cgray
=
user
.
username
app/views/projects/milestones/show.html.haml
View file @
834b5d49
...
@@ -98,15 +98,7 @@
...
@@ -98,15 +98,7 @@
.tab-pane
#tab-merge-requests
.tab-pane
#tab-merge-requests
=
render
'shared/milestones/merge_requests_tab'
,
unassigned:
@merge_requests
.
opened
.
unassigned
,
assigned:
@merge_requests
.
opened
.
assigned
,
closed:
@merge_requests
.
closed
,
merged:
@merge_requests
.
merged
=
render
'shared/milestones/merge_requests_tab'
,
unassigned:
@merge_requests
.
opened
.
unassigned
,
assigned:
@merge_requests
.
opened
.
assigned
,
closed:
@merge_requests
.
closed
,
merged:
@merge_requests
.
merged
.tab-pane
#tab-participants
.tab-pane
#tab-participants
%ul
.bordered-list
=
render
'shared/milestones/participants_tab'
,
users:
@users
-
@users
.
each
do
|
user
|
%li
=
link_to
user
,
title:
user
.
name
,
class:
"darken"
do
=
image_tag
avatar_icon
(
user
,
32
),
class:
"avatar s32"
%strong
=
truncate
(
user
.
name
,
lenght:
40
)
%br
%small
.cgray
=
user
.
username
.tab-pane
#tab-labels
.tab-pane
#tab-labels
%ul
.bordered-list.manage-labels-list
%ul
.bordered-list.manage-labels-list
-
@labels
.
each
do
|
label
|
-
@labels
.
each
do
|
label
|
...
...
app/views/shared/milestones/_participants_tab.html.haml
0 → 100644
View file @
834b5d49
%ul
.bordered-list
-
users
.
each
do
|
user
|
%li
=
link_to
user
,
title:
user
.
name
,
class:
"darken"
do
=
image_tag
avatar_icon
(
user
,
32
),
class:
"avatar s32"
%strong
=
truncate
(
user
.
name
,
lenght:
40
)
%br
%small
.cgray
=
user
.
username
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