2017-09-10 17:25:29 +05:30
|
|
|
- sum_added_lines = diff_files.sum(&:added_lines)
|
|
|
|
- sum_removed_lines = diff_files.sum(&:removed_lines)
|
|
|
|
.commit-stat-summary.dropdown
|
|
|
|
Showing
|
|
|
|
%button.diff-stats-summary-toggler.js-diff-stats-dropdown{ type: "button", data: { toggle: "dropdown" } }<
|
|
|
|
= pluralize(diff_files.size, "changed file")
|
|
|
|
= icon("caret-down", class: "prepend-left-5")
|
|
|
|
%span.diff-stats-additions-deletions-expanded#diff-stats
|
2015-10-24 18:46:33 +05:30
|
|
|
with
|
2017-09-10 17:25:29 +05:30
|
|
|
%strong.cgreen #{sum_added_lines} additions
|
2015-10-24 18:46:33 +05:30
|
|
|
and
|
2017-09-10 17:25:29 +05:30
|
|
|
%strong.cred #{sum_removed_lines} deletions
|
|
|
|
.diff-stats-additions-deletions-collapsed.pull-right.hidden-xs.hidden-sm{ "aria-hidden": "true", "aria-describedby": "diff-stats" }
|
|
|
|
%strong.cgreen<
|
|
|
|
+#{sum_added_lines}
|
|
|
|
%strong.cred<
|
|
|
|
\-#{sum_removed_lines}
|
|
|
|
.dropdown-menu.diff-file-changes
|
|
|
|
= dropdown_filter("Search files")
|
|
|
|
.dropdown-content
|
|
|
|
%ul
|
|
|
|
- diff_files.each do |diff_file|
|
|
|
|
%li
|
2018-03-17 18:26:18 +05:30
|
|
|
%a.diff-changed-file{ href: "##{hexdigest(diff_file.file_path)}", title: diff_file.new_path }
|
|
|
|
= sprite_icon(diff_file_changed_icon(diff_file), size: 16, css_class: "#{diff_file_changed_icon_color(diff_file)} diff-file-changed-icon append-right-8")
|
|
|
|
%span.diff-changed-file-content.append-right-8
|
|
|
|
- if diff_file.blob&.name
|
|
|
|
%strong.diff-changed-file-name
|
|
|
|
= diff_file.blob.name
|
|
|
|
- else
|
|
|
|
%strong.diff-changed-blank-file-name
|
|
|
|
= s_('Diffs|No file name available')
|
|
|
|
%span.diff-changed-file-path.prepend-top-5= diff_file_path_text(diff_file)
|
|
|
|
%span.diff-changed-stats
|
2017-09-10 17:25:29 +05:30
|
|
|
%span.cgreen<
|
|
|
|
+#{diff_file.added_lines}
|
|
|
|
%span.cred<
|
|
|
|
\-#{diff_file.removed_lines}
|
2018-03-17 18:26:18 +05:30
|
|
|
%li.dropdown-menu-empty-item.hidden
|
|
|
|
%a
|
2017-09-10 17:25:29 +05:30
|
|
|
No files found.
|