Commit 7e42084fb800546070d3c5d0d704320d1785fdda
1 parent
a718a9af
Exists in
spb-stable
and in
3 other branches
Move author/date info for Issue#show, MR#show pages to issue-box
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
6 changed files
with
31 additions
and
25 deletions
Show diff stats
app/assets/stylesheets/generic/issue_box.scss
app/views/projects/issues/_issue_context.html.haml
1 | 1 | = form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f| |
2 | - Created by #{link_to_member(@project, issue.author)} | |
3 | - - if issue.assignee | |
4 | - \ and currently assigned to | |
2 | + %strong.append-right-10 | |
3 | + Assignee: | |
5 | 4 | |
6 | 5 | - if can?(current_user, :modify_issue, @issue) |
7 | 6 | = project_users_select_tag('issue[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control', selected: @issue.assignee_id) |
8 | 7 | - elsif issue.assignee |
9 | 8 | = link_to_member(@project, @issue.assignee) |
9 | + - else | |
10 | + None | |
10 | 11 | |
11 | - | |
12 | - .pull-right.hidden-sm.hidden-xs | |
13 | - - if issue.milestone | |
14 | - - milestone = issue.milestone | |
15 | - %cite.cgray Attached to milestone | |
16 | - | |
12 | + .pull-right | |
13 | + %strong.append-right-10 | |
14 | + Milestone: | |
17 | 15 | - if can?(current_user, :modify_issue, @issue) |
18 | 16 | = f.select(:milestone_id, milestone_options(@issue), { include_blank: "Select milestone (none):" }, {class: 'select2 select2-compact'}) |
19 | - | |
20 | 17 | = hidden_field_tag :issue_context |
21 | 18 | = f.submit class: 'btn' |
22 | 19 | - elsif issue.milestone |
23 | 20 | = link_to issue.milestone.title, project_milestone_path |
21 | + - else | |
22 | + None | ... | ... |
app/views/projects/issues/show.html.haml
1 | 1 | %h3.page-title |
2 | 2 | Issue ##{@issue.iid} |
3 | 3 | |
4 | - %small | |
5 | - created #{time_ago_with_tooltip(@issue.created_at)} | |
6 | - | |
7 | 4 | - if @issue.closed? |
8 | 5 | %span.state-label.state-label-red Closed |
9 | 6 | - else |
... | ... | @@ -38,6 +35,9 @@ |
38 | 35 | = @issue.milestone.title |
39 | 36 | |
40 | 37 | .issue-box |
38 | + .creator | |
39 | + Created by #{link_to_member(@project, @issue.author)} #{time_ago_with_tooltip(@issue.created_at)} | |
40 | + | |
41 | 41 | %h4.title |
42 | 42 | = gfm escape_once(@issue.title) |
43 | 43 | ... | ... |
app/views/projects/merge_requests/show/_context.html.haml
1 | 1 | = form_for [@project, @merge_request], remote: true, html: {class: 'edit-merge_request inline-update'} do |f| |
2 | - Created by #{link_to_member(@project, merge_request.author)} | |
3 | - - if merge_request.assignee | |
4 | - \ and currently assigned to | |
2 | + %strong.append-right-10 | |
3 | + Assignee: | |
5 | 4 | |
6 | 5 | - if can?(current_user, :modify_merge_request, @merge_request) |
7 | 6 | = project_users_select_tag('merge_request[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control', selected: @merge_request.assignee_id) |
8 | 7 | - elsif merge_request.assignee |
9 | 8 | = link_to_member(@project, @merge_request.assignee) |
9 | + - else | |
10 | + None | |
10 | 11 | |
11 | - | |
12 | - .pull-right.hidden-sm.hidden-xs | |
13 | - - if merge_request.milestone | |
14 | - - milestone = merge_request.milestone | |
15 | - %cite.cgray Attached to milestone | |
16 | - | |
12 | + .pull-right | |
13 | + %strong.append-right-10 | |
14 | + Milestone: | |
17 | 15 | - if can?(current_user, :modify_merge_request, @merge_request) |
18 | 16 | = f.select(:milestone_id, milestone_options(@merge_request), { include_blank: "Select milestone (none):" }, {class: 'select2 select2-compact'}) |
19 | - | |
20 | 17 | = hidden_field_tag :merge_request_context |
21 | 18 | = f.submit class: 'btn' |
22 | 19 | - elsif merge_request.milestone |
23 | 20 | = link_to merge_request.milestone.title, project_milestone_path |
21 | + - else | |
22 | + None | ... | ... |
app/views/projects/merge_requests/show/_mr_box.html.haml
app/views/projects/merge_requests/show/_mr_title.html.haml