From 3b3be02b75a198c2021739b5b8d0166e467f5cf5 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 31 Oct 2014 10:22:41 -0300 Subject: [PATCH] community_hub: remove rhtml --- plugins/community_hub/views/content_viewer/hub.html.erb | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ plugins/community_hub/views/content_viewer/hub.rhtml | 96 ------------------------------------------------------------------------------------------------ 2 files changed, 96 insertions(+), 96 deletions(-) create mode 100644 plugins/community_hub/views/content_viewer/hub.html.erb delete mode 100644 plugins/community_hub/views/content_viewer/hub.rhtml diff --git a/plugins/community_hub/views/content_viewer/hub.html.erb b/plugins/community_hub/views/content_viewer/hub.html.erb new file mode 100644 index 0000000..8401b80 --- /dev/null +++ b/plugins/community_hub/views/content_viewer/hub.html.erb @@ -0,0 +1,96 @@ +<% 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| %> + <%= _("Streaming") %> +
    + <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %> + <%= submit_button('add', _('Post'), :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', _('Post'), :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' %> diff --git a/plugins/community_hub/views/content_viewer/hub.rhtml b/plugins/community_hub/views/content_viewer/hub.rhtml deleted file mode 100644 index 8401b80..0000000 --- a/plugins/community_hub/views/content_viewer/hub.rhtml +++ /dev/null @@ -1,96 +0,0 @@ -<% 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| %> - <%= _("Streaming") %> -
        - <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %> - <%= submit_button('add', _('Post'), :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', _('Post'), :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' %> -- libgit2 0.21.2