@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.head_branch @pr.base_branch
@if file_diffs.len == 0
%pr_no_file_changes
@else @if ctx.logged_in
@end @for fd in file_diffs
@fd.path +@fd.additions -@fd.deletions
@if fd.is_binary
%pr_binary_file
@else @for hunk in fd.hunks @for dline in hunk.lines @{render_inline_comments(fd.path, dline, comments_by_key)} @if ctx.logged_in && pr.is_open() && dline.kind != 'context' @end @end @end
@hunk.header
@{dline.old_line_str()} @{dline.new_line_str()} @{dline.sign()}
@{render_diff_line(dline.content, fd.path)}
@end
@end @if ctx.logged_in
@end @end
@include 'layout/footer.html'