Author: Hugo Melo <hugo@riseup.net>
Remove default Image from article view
app/views/content_viewer/view_page.html.erb | 6 ------
diff --git a/app/views/content_viewer/view_page.html.erb b/app/views/content_viewer/view_page.html.erb index 72ce525e7e858923d914f22c692bf2f5b0b7e7da..97924343e375d3a68627555f28d489e4572ac1c1 100644 --- a/app/views/content_viewer/view_page.html.erb +++ b/app/views/content_viewer/view_page.html.erb @@ -31,12 +31,6 @@ <% cache_if @page.cacheable?, @page.cache_key(params, user, language) do %> <div class="<%="article-body article-body-" + @page.css_class_name %>"> <% options = @page.image? ? {:gallery_view => true} : {} %> - <% if @page.image.present? && !@page.event? && !@page.blog? %> - <div class="article-body-img"> - <%= image_tag(@page.image.public_filename) %> - <p><%= @page.image.label%></p> - </div> - <% end %> <%= article_to_html(@page, options) %> <br style="clear:both" /> </div> <!-- end class="article-body" -->