@include 'layout/head.html' @include 'layout/header.html'
@include 'layout/repo_menu.html'

@{pr.formatted_title()} #@pr.id

@if pr.is_open() %pr_status_open @else if pr.is_merged() %pr_status_merged @else %pr_status_closed @end @author.username %pr_wants_to_merge @pr.head_branch %pr_into @pr.base_branch · @{pr.relative_time()}
%pr_conversation %pr_files_changed @commits.len %pr_commits_label
@for entry in timeline @if entry.kind == 'comment'
@entry.user.username %pr_commented @{entry.comment.relative()}

@entry.comment.text

@else
@entry.user.username @if entry.review.state == 1 %pr_review_approved @{entry.review.relative()} @else if entry.review.state == 2 %pr_review_changes_requested @{entry.review.relative()} @else %pr_review_commented @{entry.review.relative()} @end
@if entry.review.body != ''

@entry.review.body

@end @if entry.rcomments.len > 0 @end
@end @end @if ctx.logged_in
@end @if ctx.logged_in
@if can_merge
@end @if can_close
@end @if can_reopen
@end
@end
@include 'layout/footer.html'