gitlabhq/app/views/merge_requests/show/_mr_box.html.haml

35 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-01-04 22:35:31 +01:00
.ui-box.ui-box-show
.ui-box-head
%h4.box-title
2013-02-18 09:40:56 +01:00
- if @merge_request.merged?
.error.status_info
%i.icon-ok
Merged
2013-02-18 09:40:56 +01:00
- elsif @merge_request.closed?
.error.status_info Closed
2012-09-20 02:21:12 +02:00
= gfm escape_once(@merge_request.title)
2013-01-04 22:35:31 +01:00
.ui-box-body
%div
%cite.cgray
Created at #{@merge_request.created_at.stamp("Aug 21, 2011")} by #{link_to_member(@project, @merge_request.author)}
- if @merge_request.assignee
\, currently assigned to #{link_to_member(@project, @merge_request.assignee)}
- if @merge_request.milestone
- milestone = @merge_request.milestone
%cite.cgray and attached to milestone
%strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone)
2013-02-18 09:40:56 +01:00
- if @merge_request.closed?
2013-01-04 22:35:31 +01:00
.ui-box-bottom
2013-02-18 13:49:56 +01:00
%span
Closed by #{link_to_member(@project, @merge_request.closed_event.author)}
%small #{time_ago_in_words(@merge_request.closed_event.created_at)} ago.
- if @merge_request.merged?
.ui-box-bottom
%span
Merged by #{link_to_member(@project, @merge_request.merge_event.author)}
%small #{time_ago_in_words(@merge_request.merge_event.created_at)} ago.