%li{ class: mr_css_classes(merge_request) }
  .merge-request-title
    %span.light= "##{merge_request.iid}"
    = link_to_gfm truncate(merge_request.title, length: 80), project_merge_request_path(merge_request.target_project, merge_request), class: "row_title"
    - if merge_request.merged?
      %small.pull-right
        %i.icon-ok
        = "MERGED"
    - else
      %span.pull-right
        - if merge_request.for_fork?
          %span.light
            = "#{merge_request.source_project.path_with_namespace}"
          = "#{merge_request.source_branch}"
          %i.icon-angle-right.light
          = "#{merge_request.target_branch}"
        - else
          = "#{merge_request.source_branch}"
          %i.icon-angle-right.light
          = "#{merge_request.target_branch}"
  .merge-request-info
    - if merge_request.author
      authored by #{link_to_member(merge_request.source_project, merge_request.author)}
    - if merge_request.votes_count > 0
      = render 'votes/votes_inline', votable: merge_request
    - if merge_request.notes.any?
      %span
        %i.icon-comments
        = merge_request.mr_and_commit_notes.count
    - if merge_request.milestone_id?
      %span
        %i.icon-time
        = merge_request.milestone.title


    .pull-right
      %small updated #{time_ago_in_words(merge_request.updated_at)} ago
