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
Jérome Perrin
gitlab-ce
Commits
177b953d
Commit
177b953d
authored
Feb 18, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve/assignee_select' into 'master'
Improve assignee select Fixes #1036. Fixes #1047
parents
ade780a9
423dcb46
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
app/views/projects/issues/_form.html.haml
app/views/projects/issues/_form.html.haml
+1
-1
app/views/projects/issues/_issue_context.html.haml
app/views/projects/issues/_issue_context.html.haml
+2
-1
app/views/projects/merge_requests/_form.html.haml
app/views/projects/merge_requests/_form.html.haml
+1
-1
No files found.
app/views/projects/issues/_form.html.haml
View file @
177b953d
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
%i
.icon-user
%i
.icon-user
Assign to
Assign to
.col-sm-10
.col-sm-10
=
project_users_select_tag
(
'issue[assignee_id]'
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
)
=
project_users_select_tag
(
'issue[assignee_id]'
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
selected:
@issue
.
assignee_id
)
=
link_to
'Assign to me'
,
'#'
,
class:
'btn btn-small assign-to-me-link'
=
link_to
'Assign to me'
,
'#'
,
class:
'btn btn-small assign-to-me-link'
.form-group
.form-group
...
...
app/views/projects/issues/_issue_context.html.haml
View file @
177b953d
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
-
if
can?
(
current_user
,
:modify_issue
,
@issue
)
-
if
can?
(
current_user
,
:modify_issue
,
@issue
)
=
link_to
profile_path
(
issue
.
assignee
)
do
=
link_to
profile_path
(
issue
.
assignee
)
do
=
image_tag
(
avatar_icon
(
issue
.
assignee
.
email
),
class:
'avatar avatar-inline s16 assignee'
)
if
issue
.
assignee
=
image_tag
(
avatar_icon
(
issue
.
assignee
.
email
),
class:
'avatar avatar-inline s16 assignee'
)
if
issue
.
assignee
=
f
.
select
(
:assignee_id
,
assignee_options
(
@issue
),
{
include_blank:
"Assign to user (none):"
},
{
class:
'select2'
})
=
project_users_select_tag
(
'issue[assignee_id]'
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
selected:
@issue
.
assignee_id
)
-
elsif
issue
.
assignee
-
elsif
issue
.
assignee
=
link_to_member
(
@project
,
@issue
.
assignee
)
=
link_to_member
(
@project
,
@issue
.
assignee
)
...
...
app/views/projects/merge_requests/_form.html.haml
View file @
177b953d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
%i
.icon-user
%i
.icon-user
Assign to
Assign to
.col-sm-10
.col-sm-10
=
project_users_select_tag
(
'merge_request[assignee_id]'
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
)
=
project_users_select_tag
(
'merge_request[assignee_id]'
,
placeholder:
'Select a user'
,
class:
'custom-form-control'
,
selected:
@merge_request
.
assignee_id
)
=
link_to
'Assign to me'
,
'#'
,
class:
'btn btn-small assign-to-me-link'
=
link_to
'Assign to me'
,
'#'
,
class:
'btn btn-small assign-to-me-link'
.form-group
.form-group
...
...
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