Fix annoucement front_end displaying two promoter

This commit is contained in:
Manson Wang 2013-11-20 14:03:48 +08:00
parent 003be65d03
commit d3a9603531
1 changed files with 3 additions and 10 deletions

View File

@ -44,15 +44,8 @@
<% end %>
</div>
<% unless @bulletin.user_ids.blank? %>
<div class="promoter">
<div>
<p><%= t(:promoter) %></p>
<span><%= @bulletin.get_users.map{|u| "<span>#{u.name}</span>"}.join(', ').html_safe %></span>
</div>
</div>
<% end %>
<%= share_links(@bulletin, 'announcement') %>
<% unless @bulletin.user_ids.blank? %>
<%= render partial: 'admin/member_selects/promoter_front', locals: {users: @bulletin.get_users} %>
<% end %>