Commit fb415656533607f6cc0b556831522b8601f2598d

Authored by Francisco Marcelo de Araújo Lima Júnior
1 parent 5871677c

#community dashboard - updating theme

plugins/community_hub/public/style.css
@@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
4 } 4 }
5 5
6 #input-panel { 6 #input-panel {
7 - height: 350px;  
8 width: 100%; 7 width: 100%;
9 padding-top: 10px; 8 padding-top: 10px;
10 display: inline-block; 9 display: inline-block;
plugins/community_hub/views/content_viewer/hub.rhtml
@@ -24,6 +24,27 @@ @@ -24,6 +24,27 @@
24 24
25 <span><%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %></span> 25 <span><%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %></span>
26 26
  27 + <% if logged_in? %>
  28 + <div id="input-panel">
  29 + <div class="form-message">
  30 +
  31 + <% form_for :message,
  32 + :method => 'post',
  33 + :url => {
  34 + :controller => 'community_hub_plugin_public',
  35 + :action => 'new_message',
  36 + :article_id => @page.id
  37 + } do |f| %>
  38 + <span><%= _("Streaming") %></span>
  39 + <br />
  40 + <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %>
  41 + <%= submit_button('add', _('Post'), :onclick => 'new_message(this); return false;') %>
  42 + <% end %>
  43 +
  44 + </div>
  45 + </div>
  46 + <% end %>
  47 +
27 </div> 48 </div>
28 49
29 <div id="right-tab" class="mediation content-tab hide"> 50 <div id="right-tab" class="mediation content-tab hide">
@@ -40,12 +61,7 @@ @@ -40,12 +61,7 @@
40 <ul id="mediation-posts"></ul> 61 <ul id="mediation-posts"></ul>
41 </div> 62 </div>
42 63
43 - </div>  
44 -  
45 - <% if mediator?(@page) %>  
46 -  
47 - <% if logged_in? %>  
48 - 64 + <% if logged_in? && mediator?(@page) %>
49 <div class="form-mediation"> 65 <div class="form-mediation">
50 66
51 <%= render :file => 'shared/tiny_mce' %> 67 <%= render :file => 'shared/tiny_mce' %>
@@ -68,34 +84,7 @@ @@ -68,34 +84,7 @@
68 84
69 <%= render :partial => "community_hub_plugin_public/settings" %> 85 <%= render :partial => "community_hub_plugin_public/settings" %>
70 86
71 - <% else %>  
72 -  
73 - <div id="input-panel">  
74 -  
75 - <% if logged_in? %>  
76 -  
77 - <div class="form-message">  
78 -  
79 - <% form_for :message,  
80 - :method => 'post',  
81 - :url => {  
82 - :controller => 'community_hub_plugin_public',  
83 - :action => 'new_message',  
84 - :article_id => @page.id  
85 - } do |f| %>  
86 - <span><%= _("Streaming") %></span>  
87 - <br />  
88 - <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %>  
89 - <%= submit_button('add', _('Post'), :onclick => 'new_message(this); return false;') %>  
90 - <% end %>  
91 -  
92 - </div>  
93 -  
94 - <% end %>  
95 -  
96 - </div>  
97 -  
98 - <% end %> 87 + </div>
99 88
100 </div> 89 </div>
101 90