_merge_request.html.haml 1.6 KB
Newer Older
1
%li{ class: mr_css_classes(merge_request) }
2
  .merge-request-title
3
    %span.merge-request-title-text
4
      = link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
Stefan Tatschner's avatar
Stefan Tatschner committed
5 6
    .merge-request-labels
      - merge_request.labels.each do |label|
Robert Speicher's avatar
Robert Speicher committed
7
        = link_to_label(label, project: merge_request.project)
8
    .pull-right.light
9 10 11
      - if merge_request.merged?
        %span
          %i.fa.fa-check
12
          MERGED
13 14
      - elsif merge_request.closed?
        %span
15
          %i.fa.fa-ban
16
          CLOSED
17
      - note_count = merge_request.mr_and_commit_notes.user.count
Stefan Tatschner's avatar
Stefan Tatschner committed
18 19 20
      - if merge_request.assignee
         
        = link_to_member(merge_request.source_project, merge_request.assignee, name: false)
21
      - if note_count > 0
22 23 24
         
        %span
          %i.fa.fa-comments
25
          = note_count
Stefan Tatschner's avatar
Stefan Tatschner committed
26 27 28 29 30 31
      - else
         
        %span.merge-request-no-comments
          %i.fa.fa-comments
          = 0

32
  .merge-request-info
33
    = "##{merge_request.iid} opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')} by #{link_to_member(@project, merge_request.author, avatar: false)}".html_safe
Riyad Preukschas's avatar
Riyad Preukschas committed
34
    - if merge_request.votes_count > 0
35
      = render 'votes/votes_inline', votable: merge_request
36
    - if merge_request.milestone_id?
Stefan Tatschner's avatar
Stefan Tatschner committed
37
       
38
      %span
39
        %i.fa.fa-clock-o
40
        = merge_request.milestone.title
41 42 43
    - if merge_request.tasks?
      %span.task-status
        = merge_request.task_status
44

45
    .pull-right.hidden-xs
46
      %span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}