Commit f08ab7d712a8b8643b2098be6754d6fe10b8e120
1 parent
2bc91620
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
community_hub: fix mediation tab
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
plugins/community_hub/views/community_hub_plugin_public/_mediation.html.erb
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | <% elsif mediation.source == 'facebook' %> | 11 | <% elsif mediation.source == 'facebook' %> |
12 | <%= image_tag('/plugins/community_hub/icons/logo_facebook_50x50.png', :alt => "Facebook") %> | 12 | <%= image_tag('/plugins/community_hub/icons/logo_facebook_50x50.png', :alt => "Facebook") %> |
13 | <% else %> | 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 | <% end %> | 15 | <% end %> |
16 | </li> | 16 | </li> |
17 | <li class="message"><span class="author"><%= mediation.setting[:author_name] %>:</span> <%= mediation.body %></li> | 17 | <li class="message"><span class="author"><%= mediation.setting[:author_name] %>:</span> <%= mediation.body %></li> |
@@ -24,8 +24,8 @@ | @@ -24,8 +24,8 @@ | ||
24 | <% if mediation.source != 'twitter' && mediation.source != 'facebook' %> | 24 | <% if mediation.source != 'twitter' && mediation.source != 'facebook' %> |
25 | 25 | ||
26 | <li class="promote"> | 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 | <img class="not-promoted" src="/plugins/community_hub/icons/hub-not-promote-icon.png" title="<%= _("User not promoted") %>" /> | 29 | <img class="not-promoted" src="/plugins/community_hub/icons/hub-not-promote-icon.png" title="<%= _("User not promoted") %>" /> |
30 | </a> | 30 | </a> |
31 | <% else %> | 31 | <% else %> |