From 4976fdc6950b00ccf0d891f46a42162d038f7c88 Mon Sep 17 00:00:00 2001 From: Francisco Marcelo de Araújo Lima Júnior Date: Wed, 7 May 2014 19:43:50 -0300 Subject: [PATCH] #community dashboard - updating theme --- public/style.css | 1 - views/content_viewer/hub.rhtml | 57 +++++++++++++++++++++++---------------------------------- 2 files changed, 23 insertions(+), 35 deletions(-) diff --git a/public/style.css b/public/style.css index 110d342..a9bbf7a 100644 --- a/public/style.css +++ b/public/style.css @@ -4,7 +4,6 @@ } #input-panel { - height: 350px; width: 100%; padding-top: 10px; display: inline-block; diff --git a/views/content_viewer/hub.rhtml b/views/content_viewer/hub.rhtml index 9786587..a678cb8 100644 --- a/views/content_viewer/hub.rhtml +++ b/views/content_viewer/hub.rhtml @@ -24,6 +24,27 @@ <%= 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 %> +
@@ -40,12 +61,7 @@
- - - <% if mediator?(@page) %> - - <% if logged_in? %> - + <% if logged_in? && mediator?(@page) %>
<%= render :file => 'shared/tiny_mce' %> @@ -68,34 +84,7 @@ <%= render :partial => "community_hub_plugin_public/settings" %> - <% else %> - -
- - <% 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 %> - -
- - <% end %> +
-- libgit2 0.21.2