Commit fb415656533607f6cc0b556831522b8601f2598d
1 parent
5871677c
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
#community dashboard - updating theme
Showing
2 changed files
with
23 additions
and
35 deletions
Show diff stats
plugins/community_hub/public/style.css
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 |