From fc7efd2f24a7dad5381b2aa8bc78f7bd8aa3e0f2 Mon Sep 17 00:00:00 2001 From: Francisco Marcelo de Araújo Lima Júnior Date: Sat, 7 Dec 2013 23:58:32 -0300 Subject: [PATCH] display content plugin : fix tags --- plugins/display_content/lib/display_content_block.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/display_content/lib/display_content_block.rb b/plugins/display_content/lib/display_content_block.rb index a8040d6..ccf17e9 100644 --- a/plugins/display_content/lib/display_content_block.rb +++ b/plugins/display_content/lib/display_content_block.rb @@ -66,7 +66,6 @@ class DisplayContentBlock < Block block_title(title) + content_tag('ul', docs.map {|item| - debugger read_more_section = '' tags_section = '' @@ -91,9 +90,7 @@ class DisplayContentBlock < Block end when 'Tags' if !item.tags.empty? - tags_section = item.tags.map { |t| - content_tag('span', link_to(t, :host => item.url[:host], :port => item.url[:port], :controller => 'profile', :profile => @box.owner.identifier, :action => 'tags', :id => t.name ) ) - }.join("") + tags_section = item.tags.map { |t| content_tag('span', t.name) }.join("") content_sections += (display_section?(section) ? (content_tag('div', tags_section, :class => 'tags')) : '') end end -- libgit2 0.21.2