2013-01-04 16:35:31 -05:00
|
|
|
.ui-box.ui-box-show
|
|
|
|
.ui-box-head
|
2012-12-12 22:14:05 -05:00
|
|
|
%h4.box-title
|
2013-04-19 14:50:37 -04:00
|
|
|
= gfm escape_once(@merge_request.title)
|
2013-02-18 03:40:56 -05:00
|
|
|
- if @merge_request.merged?
|
2013-04-19 14:57:30 -04:00
|
|
|
.success.status_info
|
2012-12-15 05:32:09 -05:00
|
|
|
%i.icon-ok
|
|
|
|
Merged
|
2013-02-18 03:40:56 -05:00
|
|
|
- elsif @merge_request.closed?
|
2012-12-12 22:14:05 -05:00
|
|
|
.error.status_info Closed
|
2012-06-29 14:55:22 -04:00
|
|
|
|
2013-01-04 16:35:31 -05:00
|
|
|
.ui-box-body
|
2012-06-29 14:55:22 -04:00
|
|
|
%div
|
2012-12-12 22:14:05 -05:00
|
|
|
%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)}
|
2012-10-26 09:53:45 -04:00
|
|
|
- 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)
|
2012-06-29 14:55:22 -04:00
|
|
|
|
|
|
|
|
2013-02-18 03:40:56 -05:00
|
|
|
- if @merge_request.closed?
|
2013-04-19 14:50:37 -04:00
|
|
|
.ui-box-bottom.alert-error
|
2013-02-18 07:49:56 -05:00
|
|
|
%span
|
2013-04-19 14:50:37 -04:00
|
|
|
%i.icon-remove
|
2013-02-18 07:49:56 -05:00
|
|
|
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?
|
2013-04-19 14:50:37 -04:00
|
|
|
.ui-box-bottom.alert-success
|
2013-02-18 07:49:56 -05:00
|
|
|
%span
|
2013-04-19 14:50:37 -04:00
|
|
|
%i.icon-ok
|
2013-02-18 07:49:56 -05:00
|
|
|
Merged by #{link_to_member(@project, @merge_request.merge_event.author)}
|
2013-04-19 14:50:37 -04:00
|
|
|
#{time_ago_in_words(@merge_request.merge_event.created_at)} ago.
|
2012-06-29 14:55:22 -04:00
|
|
|
|