Fix annoucement front_end displaying two promoter

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

View File

@ -44,15 +44,8 @@
<% end %> <% end %>
</div> </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') %> <%= share_links(@bulletin, 'announcement') %>
<%= render partial: 'admin/member_selects/promoter_front', locals: {users: @bulletin.get_users} %> <% unless @bulletin.user_ids.blank? %>
<%= render partial: 'admin/member_selects/promoter_front', locals: {users: @bulletin.get_users} %>
<% end %>