cirandas.net

ref: master

app/views/content_viewer/view_page.html.erb


<%
  if @page.parent && @page.parent.has_posts? && @page.parent.feed
    add_rss_feed_to_head(@page.parent.name, @page.parent.feed.url)
  end
%>

<%= render :partial => 'confirm_unfollow' %> <% if @page.parent && !@page.parent.path.blank? %>
<%= button(:back, _('Go back to %s') % @page.parent.title, @page.parent.url) %>
<% end %>
<%= render :partial => 'article_toolbar' %>
<% if NOOSFERO_CONF['addthis_enabled'] and @page.public? %> <%= render :partial => 'addthis' %> <% end %> <% cache_if @page.cacheable?, @page.cache_key(params, user, language) do %>
"> <% options = @page.image? ? {:gallery_view => true} : {} %> <%= article_to_html(@page, options) %>
<% end %> <% if ! @page.categories.empty? %>

<%= _('Categories') %>

<%= safe_join(@page.categories.map {|item| link_to_category(item, false) }, ", ") %>
<% end %> <% if !@page.tags.empty? %>
<%= _("This article's tags:").html_safe %> <%= safe_join(@page.tags.map { |t| link_to(t, :controller => 'profile', :profile => @profile.identifier, :action => 'tags', :id => t.name ) }, "\n") %>
<% end %> <%= display_source_info(@page) %> <%= safe_join(@plugins.dispatch(:article_extra_contents, @page).collect { |content| instance_exec(&content) }, "") %> <%= render 'comments_list' if @page.accept_comments? or @comments_count > 0 %>
<%= add_zoom_to_article_images %>