summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-04-06 20:09:15 -0300
committerGabriel Mazetto <gabriel@gitlab.com>2016-04-06 20:09:15 -0300
commit1575a95b65d4cad91f775ae260b8828cdf303462 (patch)
tree6aedda10b0a398c3cf403a601dfb28da80fc3272 /lib
parent207b7218aa4394dc24c68041eade04474ff41537 (diff)
downloadgitlab-ce-1575a95b65d4cad91f775ae260b8828cdf303462.tar.gz
little refactor and improvements on specs
Diffstat (limited to 'lib')
-rw-r--r--lib/banzai/filter/gollum_tags_filter.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/banzai/filter/gollum_tags_filter.rb b/lib/banzai/filter/gollum_tags_filter.rb
index f710a4971b0..d08267a9d6c 100644
--- a/lib/banzai/filter/gollum_tags_filter.rb
+++ b/lib/banzai/filter/gollum_tags_filter.rb
@@ -118,7 +118,7 @@ module Banzai
end
if path
- content_tag(:img, nil, src: path, class: tag_class('image'))
+ content_tag(:img, nil, src: path, class: 'gfm')
end
end
@@ -155,7 +155,7 @@ module Banzai
href = ::File.join(project_wiki_base_path, reference)
end
- content_tag(:a, name || reference, href: href, class: tag_class('page'))
+ content_tag(:a, name || reference, href: href, class: 'gfm')
end
def project_wiki
@@ -172,10 +172,6 @@ module Banzai
def validate
needs :project_wiki
end
-
- def tag_class(type)
- "gfm gollum gollum-#{type}"
- end
end
end
end