|
|
|
@ -106,12 +106,12 @@
|
|
|
|
|
<% if (User.current.admin?||User.current.id==@bid.author_id) %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" style="padding-left: 8px; font-size: 15px" colspan="2">
|
|
|
|
|
<span id="<%=bid.id %>_anonymous_comment">
|
|
|
|
|
<% case bid.comment_status %>
|
|
|
|
|
<span id="<%=@bid.id %>_anonymous_comment">
|
|
|
|
|
<% case @bid.comment_status %>
|
|
|
|
|
<% when 0 %>
|
|
|
|
|
<%= link_to '启动匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...' %>
|
|
|
|
|
<%= link_to '启动匿评', alert_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...' %>
|
|
|
|
|
<% when 1 %>
|
|
|
|
|
<%= link_to '关闭匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_stop_anonymous_comment", remote: true %>
|
|
|
|
|
<%= link_to '关闭匿评', alert_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_stop_anonymous_comment", remote: true %>
|
|
|
|
|
<% when 2 %>
|
|
|
|
|
匿评结束
|
|
|
|
|
<% end %>
|
|
|
|
|