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
Tatuya Kamada
gitlab-ce
Commits
9654b098
Commit
9654b098
authored
Jun 05, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Milestone drag-n-drop with 3 columns
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
eeef2c73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
app/assets/javascripts/milestone.js.coffee
app/assets/javascripts/milestone.js.coffee
+4
-3
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+5
-7
No files found.
app/assets/javascripts/milestone.js.coffee
View file @
9654b098
...
...
@@ -15,7 +15,7 @@ class Milestone
@
bindSorting
()
bindSorting
:
->
$
(
"#issues-list-unassigned, #issues-list-ongoing, #issues-list-closed
, #issues-list-reopened
"
).
sortable
(
$
(
"#issues-list-unassigned, #issues-list-ongoing, #issues-list-closed"
).
sortable
(
connectWith
:
".issues-sortable-list"
,
dropOnEmpty
:
true
,
receive
:
(
event
,
ui
)
->
...
...
@@ -30,8 +30,9 @@ class Milestone
"issue[assignee_id]="
when
'closed'
"issue[state_event]=close"
when
'reopened'
"issue[state_event]=reopen"
if
$
(
ui
.
sender
).
data
(
'state'
)
==
"closed"
data
+=
"&issue[state_event]=reopen"
Milestone
.
updateIssue
(
ui
.
item
,
issue_url
,
data
)
...
...
app/views/projects/milestones/show.html.haml
View file @
9654b098
...
...
@@ -75,14 +75,12 @@
.tab-content
.tab-pane.active
#tab-issues
.row
.col-md-
3
=
render
(
'issues'
,
title:
'Unstarted Issues (open and unassigned)'
,
issues:
@issues
.
o
nly_o
pened
.
unassigned
,
id:
'unassigned'
)
.col-md-
3
=
render
(
'issues'
,
title:
'Ongoing Issues (open and assigned)'
,
issues:
@issues
.
o
nly_o
pened
.
assigned
,
id:
'ongoing'
)
.col-md-
3
.col-md-
4
=
render
(
'issues'
,
title:
'Unstarted Issues (open and unassigned)'
,
issues:
@issues
.
opened
.
unassigned
,
id:
'unassigned'
)
.col-md-
4
=
render
(
'issues'
,
title:
'Ongoing Issues (open and assigned)'
,
issues:
@issues
.
opened
.
assigned
,
id:
'ongoing'
)
.col-md-
4
=
render
(
'issues'
,
title:
'Completed Issues (closed)'
,
issues:
@issues
.
closed
,
id:
'closed'
)
.col-md-3
=
render
(
'issues'
,
title:
'Reopened Issues (reopened)'
,
issues:
@issues
.
only_reopened
,
id:
'reopened'
)
.tab-pane
#tab-merge-requests
.row
...
...
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