Commit f08ab7d712a8b8643b2098be6754d6fe10b8e120

Authored by Victor Costa
1 parent 2bc91620

community_hub: fix mediation tab

plugins/community_hub/views/community_hub_plugin_public/_mediation.html.erb
... ... @@ -11,7 +11,7 @@
11 11 <% elsif mediation.source == 'facebook' %>
12 12 <%= image_tag('/plugins/community_hub/icons/logo_facebook_50x50.png', :alt => "Facebook") %>
13 13 <% else %>
14   - <%= image_tag(profile_icon(mediation.author, :minor)) if mediation.author %>
  14 + <%= image_tag(profile_icon(mediation.created_by, :minor)) if mediation.created_by %>
15 15 <% end %>
16 16 </li>
17 17 <li class="message"><span class="author"><%= mediation.setting[:author_name] %>:</span> <%= mediation.body %></li>
... ... @@ -24,8 +24,8 @@
24 24 <% if mediation.source != 'twitter' && mediation.source != 'facebook' %>
25 25  
26 26 <li class="promote">
27   - <% if !promoted?(hub, mediation.author.id) %>
28   - <a id="<%= mediation.id %>" href="#" onclick="promote_user(<%= mediation.id %>,<%= mediation.author.id %>); return false;">
  27 + <% if !promoted?(hub, mediation.created_by.id) %>
  28 + <a id="<%= mediation.id %>" href="#" onclick="promote_user(<%= mediation.id %>,<%= mediation.created_by.id %>); return false;">
29 29 <img class="not-promoted" src="/plugins/community_hub/icons/hub-not-promote-icon.png" title="<%= _("User not promoted") %>" />
30 30 </a>
31 31 <% else %>
... ...