From 2ff83aa389894c1dc306f1bf3d2d4aebe25eff62 Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Tue, 9 Sep 2014 11:52:16 +0200 Subject: Fix typo. --- app/helpers/diff_helper.rb | 2 +- app/views/projects/diffs/_diffs.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb index 0b49748fa37..afe7447d4e2 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -13,7 +13,7 @@ module DiffHelper end end - def show_diff_size_warninig?(diffs) + def show_diff_size_warning?(diffs) diffs.size > allowed_diff_size end diff --git a/app/views/projects/diffs/_diffs.html.haml b/app/views/projects/diffs/_diffs.html.haml index 49b3dc6941a..2d7ecdc3809 100644 --- a/app/views/projects/diffs/_diffs.html.haml +++ b/app/views/projects/diffs/_diffs.html.haml @@ -12,7 +12,7 @@ = link_to "Inline Diff", url_for(params_copy), {id: "commit-diff-viewtype"} -- if show_diff_size_warninig?(diffs) +- if show_diff_size_warning?(diffs) = render 'projects/diffs/warning', diffs: diffs .files -- cgit v1.2.1