_merge_request.html.haml 1.64 KB
Newer Older
1
%li{ class: mr_css_classes(merge_request) }
2
  .merge-request-title
3
    %span.str-truncated
4
      = link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
5
    .pull-right.light
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      - if merge_request.merged?
        %span
          %i.fa.fa-check
          MERGED
      - elsif merge_request.closed?
        %span
          %i.fa.fa-close
          CLOSED
      - else
        %span.hidden-xs.hidden-sm
          %span.label-branch<
            %i.fa.fa-code-fork
            %span= merge_request.target_branch
      - if merge_request.notes.any?
        &nbsp;
        %span
          %i.fa.fa-comments
          = merge_request.mr_and_commit_notes.count
24
  .merge-request-info
25
    = link_to "##{merge_request.iid}", project_merge_request_path(merge_request.target_project, merge_request), class: "light"
26 27
    - if merge_request.assignee
      assigned to #{link_to_member(merge_request.source_project, merge_request.assignee)}
28
    - else
29
      Unassigned
Riyad Preukschas's avatar
Riyad Preukschas committed
30
    - if merge_request.votes_count > 0
31
      = render 'votes/votes_inline', votable: merge_request
32 33
    - if merge_request.milestone_id?
      %span
34
        %i.fa.fa-clock-o
35
        = merge_request.milestone.title
36 37 38
    - if merge_request.tasks?
      %span.task-status
        = merge_request.task_status
39

40

41
    .pull-right.hidden-xs
42
      %small updated #{time_ago_with_tooltip(merge_request.updated_at, 'bottom', 'merge_request_updated_ago')}
43 44 45

    .merge-request-labels
      - merge_request.labels.each do |label|
Vinnie Okada's avatar
Vinnie Okada committed
46
        = link_to namespace_project_merge_requests_path(merge_request.project.namespace, merge_request.project, label_name: label.name) do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
47
          = render_colored_label(label)