Commit fc7efd2f24a7dad5381b2aa8bc78f7bd8aa3e0f2
1 parent
539c4197
Exists in
master
and in
29 other branches
display content plugin : fix tags
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
plugins/display_content/lib/display_content_block.rb
@@ -66,7 +66,6 @@ class DisplayContentBlock < Block | @@ -66,7 +66,6 @@ class DisplayContentBlock < Block | ||
66 | 66 | ||
67 | block_title(title) + | 67 | block_title(title) + |
68 | content_tag('ul', docs.map {|item| | 68 | content_tag('ul', docs.map {|item| |
69 | - debugger | ||
70 | 69 | ||
71 | read_more_section = '' | 70 | read_more_section = '' |
72 | tags_section = '' | 71 | tags_section = '' |
@@ -91,9 +90,7 @@ class DisplayContentBlock < Block | @@ -91,9 +90,7 @@ class DisplayContentBlock < Block | ||
91 | end | 90 | end |
92 | when 'Tags' | 91 | when 'Tags' |
93 | if !item.tags.empty? | 92 | if !item.tags.empty? |
94 | - tags_section = item.tags.map { |t| | ||
95 | - 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 ) ) | ||
96 | - }.join("") | 93 | + tags_section = item.tags.map { |t| content_tag('span', t.name) }.join("") |
97 | content_sections += (display_section?(section) ? (content_tag('div', tags_section, :class => 'tags')) : '') | 94 | content_sections += (display_section?(section) ? (content_tag('div', tags_section, :class => 'tags')) : '') |
98 | end | 95 | end |
99 | end | 96 | end |