20 lines
710 B
Plaintext
20 lines
710 B
Plaintext
- stats = @commit.stats
|
|
.leftside
|
|
%h5= t("layout.projects.diff_show_header",
|
|
:files => t("layout.projects.commit_files_count", :count => stats.files.size),
|
|
:additions => t("layout.projects.commit_additions_count", :count => stats.additions),
|
|
:deletions => t("layout.projects.commit_deletions_count", :count => stats.deletions))
|
|
.both
|
|
.rightside
|
|
= link_to "raw diff", commit_path(@project, @commit.id, :diff)
|
|
\|
|
|
= link_to "patch", commit_path(@project, @commit.id, :patch)
|
|
.both
|
|
|
|
-begin
|
|
= render_commit_stats(stats)
|
|
|
|
= render :partial => 'git/commits/commit_diff', :collection => @commit.diffs
|
|
- rescue Grit::Git::GitTimeout
|
|
%p= t 'layout.git.repositories.commit_diff_too_big'
|