Commit 63d5fcc868b0502c7d56a093256a4fcb270a8728
1 parent
d1e84958
Exists in
spb-stable
and in
3 other branches
UI: allign milestone to right for issue, mr show page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
19 additions
and
13 deletions
Show diff stats
app/assets/stylesheets/selects.scss
app/views/projects/issues/_issue_context.html.haml
... | ... | @@ -11,14 +11,16 @@ |
11 | 11 | - elsif issue.assignee |
12 | 12 | = link_to_member(@project, @issue.assignee) |
13 | 13 | |
14 | - - if issue.milestone | |
15 | - - milestone = issue.milestone | |
16 | - %cite.cgray and attached to milestone | |
17 | 14 | |
18 | - - if can?(current_user, :modify_issue, @issue) | |
19 | - = f.select(:milestone_id, milestone_options(@issue), { include_blank: "Select milestone (none):" }, {class: 'chosen'}) | |
15 | + .pull-right | |
16 | + - if issue.milestone | |
17 | + - milestone = issue.milestone | |
18 | + %cite.cgray Attached to milestone | |
19 | + | |
20 | + - if can?(current_user, :modify_issue, @issue) | |
21 | + = f.select(:milestone_id, milestone_options(@issue), { include_blank: "Select milestone (none):" }, {class: 'chosen chosen-compact'}) | |
20 | 22 | |
21 | - = hidden_field_tag :issue_context | |
22 | - = f.submit class: 'btn' | |
23 | - - elsif issue.milestone | |
24 | - = link_to issue.milestone.title, project_milestone_path | |
23 | + = hidden_field_tag :issue_context | |
24 | + = f.submit class: 'btn' | |
25 | + - elsif issue.milestone | |
26 | + = link_to issue.milestone.title, project_milestone_path | ... | ... |
app/views/projects/merge_requests/show/_mr_box.html.haml
... | ... | @@ -17,10 +17,10 @@ |
17 | 17 | - if @merge_request.assignee |
18 | 18 | Currently assigned to #{link_to_member(@project, @merge_request.assignee)}. |
19 | 19 | - if @merge_request.milestone |
20 | - - milestone = @merge_request.milestone | |
21 | - %cite.cgray Attached to milestone | |
22 | - %strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone) | |
23 | - \. | |
20 | + .pull-right | |
21 | + - milestone = @merge_request.milestone | |
22 | + %cite.cgray Attached to milestone | |
23 | + %strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone) | |
24 | 24 | |
25 | 25 | |
26 | 26 | - if @merge_request.description.present? | ... | ... |