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:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-04 19:56:12 +0400
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-04 19:56:12 +0400
commit07e9cb6b77b35ed92d0d9a8e5bcdf92884024dbf (patch)
tree3e051045f1abaa9d336354c3fa90385616860281 /app/helpers/tree_helper.rb
parentac71c386f98fa9b88381abbf9d20e79f57bd7957 (diff)
Factor markup? || gitlab_markdown? into new method
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r--app/helpers/tree_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb
index c3b537eac47..9c611a1c147 100644
--- a/app/helpers/tree_helper.rb
+++ b/app/helpers/tree_helper.rb
@@ -90,7 +90,7 @@ module TreeHelper
end
def editing_preview_title(filename)
- if gitlab_markdown?(filename) || markup?(filename)
+ if Gitlab::MarkdownHelper.previewable?(filename)
'Preview'
else
'Diff'