BigW Consortium Gitlab

_mr_title.html.haml 1.28 KB
Newer Older
1
.page-title
2
  .issue-box{ class: issue_box_class(@merge_request) }
3
    = @merge_request.state_human_name
4 5 6 7
  %span.issue-id Merge Request ##{@merge_request.iid}
  %span.creator
    ·
    created by #{link_to_member(@project, @merge_request.author, size: 24)}
8
    ·
9 10 11 12 13 14
    = time_ago_with_tooltip(@merge_request.created_at)
    - if @merge_request.updated_at != @merge_request.created_at
      %span
        ·
        = icon('edit', title: 'edited')
        = time_ago_with_tooltip(@merge_request.updated_at, placement: 'bottom')
15 16

  .issue-btn-group.pull-right
17
    - if can?(current_user, :update_merge_request, @merge_request)
18
      - if @merge_request.open?
19
        = link_to 'Close', merge_request_path(@merge_request, merge_request: { state_event: :close }), method: :put, class: "btn btn-grouped btn-close", title: "Close merge request"
Vinnie Okada committed
20
        = link_to edit_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: "btn btn-grouped issuable-edit", id: "edit_merge_request" do
21 22 23
          %i.fa.fa-pencil-square-o
          Edit
      - if @merge_request.closed?
24
        = link_to 'Reopen', merge_request_path(@merge_request, merge_request: {state_event: :reopen }), method: :put, class: "btn btn-grouped btn-reopen reopen-mr-link", title: "Close merge request"