Commit 5d83537bba54148f7280ed8cfddeb988fec75833
1 parent
bffa02a3
Exists in
master
#community dashboard - fixes
Showing
2 changed files
with
12 additions
and
9 deletions
Show diff stats
lib/community_hub_plugin/hub.rb
@@ -37,7 +37,7 @@ class CommunityHubPlugin::Hub < Folder | @@ -37,7 +37,7 @@ class CommunityHubPlugin::Hub < Folder | ||
37 | author_id = 54 | 37 | author_id = 54 |
38 | if action==:start | 38 | if action==:start |
39 | thread = Thread.new { | 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 | } unless@@twitter_thread_started | 41 | } unless@@twitter_thread_started |
42 | @@twitter_thread_started = true | 42 | @@twitter_thread_started = true |
43 | end | 43 | end |
views/community_hub_plugin_public/_post.rhtml
@@ -3,20 +3,24 @@ | @@ -3,20 +3,24 @@ | ||
3 | <li id="<%= post.id %>" class="post"> | 3 | <li id="<%= post.id %>" class="post"> |
4 | <ul> | 4 | <ul> |
5 | <li class="time"><%= post_time(post.created_at) %></li> | 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 | <li class="mediation-bar"> | 18 | <li class="mediation-bar"> |
11 | 19 | ||
12 | <ul> | 20 | <ul> |
13 | - | ||
14 | <li class="promote"> | 21 | <li class="promote"> |
15 | <img class="<%= !promoted?(hub, post.author.id) ? "promoted" : "not-promoted" %>" src="/designs/icons/default/outras/16x16/actions/spread.png" /> | 22 | <img class="<%= !promoted?(hub, post.author.id) ? "promoted" : "not-promoted" %>" src="/designs/icons/default/outras/16x16/actions/spread.png" /> |
16 | </li> | 23 | </li> |
17 | - <% end %> | ||
18 | - | ||
19 | - <% if mediator?(hub) %> | ||
20 | <li class="pin"> | 24 | <li class="pin"> |
21 | <% if !pinned_message?(hub, post.id) %> | 25 | <% if !pinned_message?(hub, post.id) %> |
22 | <a id="<%= post.id %>" href="#" onclick="pin_message(<%= post.id %>); return false;"> | 26 | <a id="<%= post.id %>" href="#" onclick="pin_message(<%= post.id %>); return false;"> |
@@ -26,7 +30,6 @@ | @@ -26,7 +30,6 @@ | ||
26 | <img class="not-pinned" src="/designs/icons/default/outras/16x16/apps/tags.gif" /> | 30 | <img class="not-pinned" src="/designs/icons/default/outras/16x16/apps/tags.gif" /> |
27 | <% end %> | 31 | <% end %> |
28 | </li> | 32 | </li> |
29 | - | ||
30 | </ul> | 33 | </ul> |
31 | 34 | ||
32 | </li> | 35 | </li> |