"
- res << "#{h(stat.filename)} | "
+ res << "#{h(stat.filename)} | "
res << ""
res << I18n.t("layout.projects.inline_changes_count", :count => stat.additions + stat.deletions).strip +
" (" +
diff --git a/app/views/projects/git/commits/_commit_diff.html.haml b/app/views/projects/git/commits/_commit_diff.html.haml
index 423436a92..3d8fc34f6 100644
--- a/app/views/projects/git/commits/_commit_diff.html.haml
+++ b/app/views/projects/git/commits/_commit_diff.html.haml
@@ -1,6 +1,6 @@
- commit_id = commit_diff.deleted_file ? @commit.parents.first.id : @commit.id
.file
- %a{:name => h(commit_diff.a_path)}
+ %a{:name => "diff-#{commit_diff_counter}"}
.top
.l= h(commit_diff.a_path.reverse.truncate(120, :separator => '/').reverse)
- if commit_diff.b_path.present?
diff --git a/app/views/projects/pull_requests/_pull_diff.html.haml b/app/views/projects/pull_requests/_pull_diff.html.haml
index b1f06c556..ff67b0781 100644
--- a/app/views/projects/pull_requests/_pull_diff.html.haml
+++ b/app/views/projects/pull_requests/_pull_diff.html.haml
@@ -1,6 +1,6 @@
- commit_id = pull_diff.deleted_file ? @base_commit.id : @head_commit.id
.file
- %a{:name => h(pull_diff.a_path)}
+ %a{:name => "diff-#{pull_diff_counter}"}
.top
.l= h(pull_diff.renamed_file ? "#{pull_diff.a_path.reverse.truncate(60, :separator => '/').reverse} -> #{pull_diff.b_path.reverse.truncate(60, :separator => '/').reverse}" : pull_diff.a_path.reverse.truncate(120, :separator => '/').reverse)
- if pull_diff.b_path.present?
|