From 4d2278e7c64548137e1cfb9e4e56f842f15c29cb Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sat, 17 Nov 2012 22:45:00 +0100 Subject: [PATCH] Rename commits/text_file partial to text_diff --- app/views/commits/_diffs.html.haml | 4 ++-- .../commits/{_text_file.html.haml => _text_diff.html.haml} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename app/views/commits/{_text_file.html.haml => _text_diff.html.haml} (100%) diff --git a/app/views/commits/_diffs.html.haml b/app/views/commits/_diffs.html.haml index e7733f05..7fe45aa2 100644 --- a/app/views/commits/_diffs.html.haml +++ b/app/views/commits/_diffs.html.haml @@ -38,10 +38,10 @@ %br/ .diff_file_content - -# Skipp all non non-supported blobs + -# Skip all non-supported blobs - next unless file.respond_to?('text?') - if file.text? - = render "commits/text_file", diff: diff, index: i + = render "commits/text_diff", diff: diff, index: i - elsif file.image? - old_file = (@commit.prev_commit.tree / diff.old_path) if !@commit.prev_commit.nil? - if diff.renamed_file || diff.new_file || diff.deleted_file diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_diff.html.haml similarity index 100% rename from app/views/commits/_text_file.html.haml rename to app/views/commits/_text_diff.html.haml