_merge_request.html.haml 680 Bytes
Newer Older
1
.search-result-row
2
  %h4
Vinnie Okada's avatar
Vinnie Okada committed
3
    = link_to [merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request] do
4
      %span.term.str-truncated= merge_request.title
5
    .pull-right #{merge_request.to_reference}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6 7 8
  - if merge_request.description.present?
    .description.term
      = preserve do
9
        = search_md_sanitize(markdown(merge_request.description, { project: merge_request.project, author: merge_request.author }))
10 11 12 13
  %span.light
    #{merge_request.project.name_with_namespace}
  .pull-right
    - if merge_request.merged?
14
      %span.label.label-primary Merged
15
    - elsif merge_request.closed?
16
      %span.label.label-danger Closed