_mr_box.html.haml 1.23 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
2
.ui-box.ui-box-show
  .ui-box-head
3
    %h4.box-title
4
      - if @merge_request.merged?
5
6
7
        .error.status_info
          %i.icon-ok
          Merged
8
      - elsif @merge_request.closed?
9
        .error.status_info Closed
10
      = gfm escape_once(@merge_request.title)
11

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12
  .ui-box-body
13
    %div
14
15
16
17
      %cite.cgray
        Created at #{@merge_request.created_at.stamp("Aug 21, 2011")} by #{link_to_member(@project, @merge_request.author)}
        - if @merge_request.assignee
          \, currently assigned to #{link_to_member(@project, @merge_request.assignee)}
18
19
20
21
      - if @merge_request.milestone
        - milestone = @merge_request.milestone
        %cite.cgray and attached to milestone
        %strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone)
22
23


24
  - if @merge_request.closed?
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
25
    .ui-box-bottom
Andrew8xx8's avatar
Andrew8xx8 committed
26
27
28
29
30
31
32
33
      %span
        Closed by #{link_to_member(@project, @merge_request.closed_event.author)}
        %small #{time_ago_in_words(@merge_request.closed_event.created_at)} ago.
  - if @merge_request.merged?
    .ui-box-bottom
      %span
        Merged by #{link_to_member(@project, @merge_request.merge_event.author)}
        %small #{time_ago_in_words(@merge_request.merge_event.created_at)} ago.
34