<% extend CommunityHubPlugin::HubHelper %>
<%= @page.title %> HUB
<%= @page.body %>

<%= _("Live") %>

<%= _("Mediation") %>

    <%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %> <% if logged_in? %>
    <%= form_for :message, :method => 'post', :url => { :controller => 'community_hub_plugin_public', :action => 'new_message', :article_id => @page.id } do |f| %> <%= _("Message") %>:
    <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %> <%= submit_button('add', _('Send'), :onclick => 'new_message(this); return false;') %> <% end %>
    <% end %>

    <%= _("Live") %>

    <%= _("Mediation") %>

      <% if logged_in? && mediator?(@page) %>
      <%= render :file => 'shared/tiny_mce' %> <%= form_for :article, :method => 'post', :url => { :controller => 'community_hub_plugin_public', :action => 'new_mediation', :profile_id => profile.id } do |f| %> <%= f.hidden_field :parent_id, :value => @page.id %> <%= f.text_area :body, :style => "width: 100%;", :class => "mceEditor" %> <%= submit_button('add', _('Send'), :onclick => 'new_mediation(this); return false;') %> <% end %>
      <%= render :partial => "community_hub_plugin_public/settings" %> <% end %>
      <%= javascript_include_tag '/plugins/community_hub/javascripts/community_hub.js' %>