Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-15 02:41:36 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-15 02:41:51 +0400
commitef396d08fc9af54f0e2c69da27d64e13064e0dfb (patch)
tree187d8ed0c09b5a5d402c4898fedf51907e5cbe32 /app/views/commits/_diffs.html.haml
parent65e4ad31476978e7f1c5cef41eb5a21e6068cbb2 (diff)
Fixed encoding issue for diff. Reordered merge request commits
Diffstat (limited to 'app/views/commits/_diffs.html.haml')
-rw-r--r--app/views/commits/_diffs.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/commits/_diffs.html.haml b/app/views/commits/_diffs.html.haml
index e3aa45d6344..29eae1c43c7 100644
--- a/app/views/commits/_diffs.html.haml
+++ b/app/views/commits/_diffs.html.haml
@@ -1,6 +1,6 @@
.file_stats
= render "commits/diff_head", :diffs => diffs
-
+
- diffs.each_with_index do |diff, i|
- next if diff.diff.empty?
- file = (@commit.tree / diff.b_path)
@@ -16,7 +16,7 @@
%br/
.diff_file_content
- if file.text?
- = render :partial => "commits/text_file", :locals => { :diff => diff, :index => i }
+ = render "commits/text_file", :diff => diff, :index => i
- elsif file.image?
.diff_file_content_image
%img{:src => "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"}