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

@commit.message

@commit.author %commit_committed @commit.relative() ยท @commit.hash %commit_view_patch
@file_diffs.len %commit_files_changed +@all_adds -@all_dels
@if file_diffs.len == 0
%commit_no_changes
@else @for fd in file_diffs
@if fd.is_renamed && fd.old_path != fd.path %commit_file_renamed @fd.old_path → @end @fd.path @if fd.is_new %commit_file_new @end @if fd.is_deleted %commit_file_deleted @end +@fd.additions -@fd.deletions
@if fd.is_binary
%commit_binary_file
@else @for hunk in fd.hunks @for dline in hunk.lines @end @end
@hunk.header
@{dline.old_line_str()} @{dline.new_line_str()} @{dline.sign()}
@{render_diff_line(dline.content, fd.path)}
@end
@end @end
@include 'layout/footer.html'