cirandas.net

ref: master

app/views/content_viewer/forum_page.html.erb


<% add_rss_feed_to_head(@page.name, @page.feed.url) if @page.forum? && @page.feed %>
<% if @page.agrees_with_terms?(user) %>

  
<%= (@page.body || '').html_safe %>

<%= (@posts.compact.empty? ? content_tag('em', _('(no posts)')) : list_forum_posts(@posts)) %>
<% else %>

<%= @page.terms_of_use %>

<%= form_tag @page.url.merge(:terms_accepted => true) do %> <%= button_bar do %> <% if user %> <%= submit_button :save, _("Accept") %> <% else %> <%= button :save, _("Accept"), login_url %> <% end %> <%= button :cancel, _("Cancel"), profile.url %> <% end %> <% end %> <% end %>