diff options
author | Stan Hu <stanhu@gmail.com> | 2015-08-21 14:26:57 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-08-21 14:27:21 -0700 |
commit | 577df6b8ca4532545ac2cad11a693dc976160b36 (patch) | |
tree | e3d7e2c4139d7603af9679111079025273c76730 /app | |
parent | 3715a0f29b6758b3075abb6f28ee24c4eb8ed427 (diff) | |
download | gitlab-ce-577df6b8ca4532545ac2cad11a693dc976160b36.tar.gz |
List the current user first in issuable dropdowns
Diffstat (limited to 'app')
-rw-r--r-- | app/views/shared/issuable/_filter.html.haml | 2 | ||||
-rw-r--r-- | app/views/shared/issuable/_form.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_filter.html.haml b/app/views/shared/issuable/_filter.html.haml index 8801f213fd1..bcaa48c7a12 100644 --- a/app/views/shared/issuable/_filter.html.haml +++ b/app/views/shared/issuable/_filter.html.haml @@ -60,7 +60,7 @@ .issues_bulk_update.hide = form_tag bulk_update_namespace_project_issues_path(@project.namespace, @project), method: :post do = select_tag('update[state_event]', options_for_select([['Open', 'reopen'], ['Closed', 'close']]), prompt: "Status", class: 'form-control') - = users_select_tag('update[assignee_id]', placeholder: 'Assignee', null_user: true, current_user: true) + = users_select_tag('update[assignee_id]', placeholder: 'Assignee', null_user: true, first_user: true, current_user: true) = select_tag('update[milestone_id]', bulk_update_milestone_options, prompt: "Milestone") = hidden_field_tag 'update[issues_ids]', [] = hidden_field_tag :state_event, params[:state_event] diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml index 8a4ae6987fa..61df138ad1e 100644 --- a/app/views/shared/issuable/_form.html.haml +++ b/app/views/shared/issuable/_form.html.haml @@ -48,7 +48,7 @@ = users_select_tag("#{issuable.class.model_name.param_key}[assignee_id]", placeholder: 'Select a user', class: 'custom-form-control', null_user: true, selected: issuable.assignee_id, project: @target_project || @project, - current_user: true) + first_user: true, current_user: true) = link_to 'Assign to me', '#', class: 'btn assign-to-me-link' .form-group |