Commit 9a4b568ab4ed7b8281bbfb83f69959991d53a19f
1 parent
96594116
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
#community dashboard - fixes
Showing
2 changed files
with
12 additions
and
9 deletions
Show diff stats
plugins/community_hub/lib/community_hub_plugin/hub.rb
... | ... | @@ -37,7 +37,7 @@ class CommunityHubPlugin::Hub < Folder |
37 | 37 | author_id = 54 |
38 | 38 | if action==:start |
39 | 39 | thread = Thread.new { |
40 | - Twurl::Stream.run(hub, author_id,'torrent', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc') | |
40 | + Twurl::Stream.run(hub, author_id,'#ArenaNETmundial', File.dirname(__FILE__) + '/../../tweeter_stream/config/twurlrc') | |
41 | 41 | } unless@@twitter_thread_started |
42 | 42 | @@twitter_thread_started = true |
43 | 43 | end | ... | ... |
plugins/community_hub/views/community_hub_plugin_public/_post.rhtml
... | ... | @@ -3,20 +3,24 @@ |
3 | 3 | <li id="<%= post.id %>" class="post"> |
4 | 4 | <ul> |
5 | 5 | <li class="time"><%= post_time(post.created_at) %></li> |
6 | - <li class="avatar"><%= image_tag(profile_icon(post.author, :minor)) %></li> | |
7 | - <li class="message"><span class="author"><%= post.author_name %>:</span><p><%= post.body %></p></li> | |
6 | + <li class="avatar"> | |
7 | + <% if post.title == 'hub-message-twitter' %> | |
8 | + <%= image_tag('/designs/themes/default/images/logo_twitter_bird_blue_50x50.png', :alt => "Twitter") %> | |
9 | + <% elsif post.title == 'hub-message-facebook' %> | |
10 | + <%= image_tag('/designs/themes/default/images/logo-facebook-50x50.png', :alt => "Facebook") %> | |
11 | + <% else %> | |
12 | + <%= image_tag(profile_icon(post.author, :minor)) %> | |
13 | + <% end %> | |
14 | + </li> | |
15 | + <li class="message"><span class="author"><%= post.author_name %>:</span> <%= post.body %></li> | |
8 | 16 | |
9 | - <% if mediator?(hub) %> | |
17 | + <% if mediator?(hub) && post.title != 'hub-message-twitter' && post.title != 'hub-message-facebook' %> | |
10 | 18 | <li class="mediation-bar"> |
11 | 19 | |
12 | 20 | <ul> |
13 | - | |
14 | 21 | <li class="promote"> |
15 | 22 | <img class="<%= !promoted?(hub, post.author.id) ? "promoted" : "not-promoted" %>" src="/designs/icons/default/outras/16x16/actions/spread.png" /> |
16 | 23 | </li> |
17 | - <% end %> | |
18 | - | |
19 | - <% if mediator?(hub) %> | |
20 | 24 | <li class="pin"> |
21 | 25 | <% if !pinned_message?(hub, post.id) %> |
22 | 26 | <a id="<%= post.id %>" href="#" onclick="pin_message(<%= post.id %>); return false;"> |
... | ... | @@ -26,7 +30,6 @@ |
26 | 30 | <img class="not-pinned" src="/designs/icons/default/outras/16x16/apps/tags.gif" /> |
27 | 31 | <% end %> |
28 | 32 | </li> |
29 | - | |
30 | 33 | </ul> |
31 | 34 | |
32 | 35 | </li> | ... | ... |