BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a971880e
Commit
a971880e
authored
Mar 18, 2016
by
Alfredo Sumaran
Committed by
Jacob Schatz
Mar 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix endpoint
parent
deee55f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
labels_select.js.coffee
app/assets/javascripts/labels_select.js.coffee
+1
-0
users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+1
-0
_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+3
-3
No files found.
app/assets/javascripts/labels_select.js.coffee
View file @
a971880e
...
...
@@ -148,6 +148,7 @@ class @LabelsSelect
$
.
ajax
(
type
:
'PUT'
url
:
issueURL
dataType
:
'JSON'
data
:
data
).
done
(
data
)
->
$loading
.
fadeOut
()
...
...
app/assets/javascripts/users_select.js.coffee
View file @
a971880e
...
...
@@ -94,6 +94,7 @@ class @UsersSelect
.
fadeIn
()
$
.
ajax
(
type
:
'PUT'
dataType
:
'json'
url
:
issueURL
data
:
data
).
done
(
data
)
->
...
...
app/views/shared/issuable/_sidebar.html.haml
View file @
a971880e
...
...
@@ -2,9 +2,9 @@
.issuable-sidebar
.block.issuable-sidebar-header
-
if
issuable
.
to_ability_name
==
'merge_request'
-
issuable_url
=
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
issuable
.
i
d
,
:json
)
-
issuable_url
=
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
issuable
.
i
id
)
-
else
-
issuable_url
=
namespace_project_issue_path
(
@project
.
namespace
,
@project
,
issuable
.
i
d
,
:json
)
-
issuable_url
=
namespace_project_issue_path
(
@project
.
namespace
,
@project
,
issuable
.
i
id
)
%span
.issuable-count.hide-collapsed.pull-left
=
issuable
.
iid
of
...
...
@@ -93,7 +93,7 @@
.light
None
.selectbox.hide-collapsed
-
issuable
.
labels
.
each
do
|
label
|
=
hidden_field_tag
"{issuable.to_ability_name}[label_names][]"
,
label
.
id
,
id:
nil
=
hidden_field_tag
"
#
{
issuable
.
to_ability_name
}
[label_names][]"
,
label
.
id
,
id:
nil
.dropdown
%button
.dropdown-menu-toggle.js-label-select.js-multiselect
{
type:
"button"
,
data:
{
toggle:
"dropdown"
,
field_name:
"#{issuable.to_ability_name}[label_names][]"
,
ability_name:
issuable
.
to_ability_name
,
show_no:
"true"
,
show_any:
"true"
,
selected:
issuable
.
label_names
.
join
(
","
),
project_id:
(
@project
.
id
if
@project
),
issue_update:
issuable_url
,
labels:
(
namespace_project_labels_path
(
@project
.
namespace
,
@project
,
:json
)
if
@project
)}}
%span
.dropdown-toggle-text
...
...
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