Commit 86d34921 authored by Phil Hughes's avatar Phil Hughes

dont assign to variable, just output directly

parent 0c5e41a2
...@@ -20,18 +20,15 @@ ...@@ -20,18 +20,15 @@
.dropdown-content .dropdown-content
%ul %ul
- diff_files.each do |diff_file| - diff_files.each do |diff_file|
- file_hash = hexdigest(diff_file.file_path)
- added_lines = diff_file.added_lines
- removed_lines = diff_file.removed_lines
%li %li
%a{ href: "##{file_hash}", title: diff_file.new_path } %a{ href: "##{hexdigest(diff_file.file_path)}", title: diff_file.new_path }
= icon("#{diff_file_changed_icon(diff_file)} fw", class: "#{diff_file_changed_icon_color(diff_file)} append-right-5") = icon("#{diff_file_changed_icon(diff_file)} fw", class: "#{diff_file_changed_icon_color(diff_file)} append-right-5")
%span.diff-file-changes-path= diff_file.new_path %span.diff-file-changes-path= diff_file.new_path
.pull-right .pull-right
%span.cgreen< %span.cgreen<
+#{added_lines} +#{diff_file.added_lines}
%span.cred< %span.cred<
\-#{removed_lines} \-#{diff_file.removed_lines}
%li.dropdown-menu-empty-link.hidden %li.dropdown-menu-empty-link.hidden
%a{ href: "#" } %a{ href: "#" }
No files found. No files found.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment