approve btn fix

This commit is contained in:
nccu 2015-03-26 20:50:56 +08:00
parent 95e06354bb
commit 155b9ebb07
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@
<% end %> <% end %>
<% if !b.rejected && !b.approved && user_can_approve? && !b.expired? && b.reapproval %> <% if (!b.rejected && !b.approved && user_can_approve? && !b.expired?) || (b.rejected && !b.approved && user_can_approve? && !b.expired? && b.reapproval) %>
<li><a href="#" class="appoval_button" data-approve-link="<%= "/#{I18n.locale.to_s}/news/#{b.to_param}" %>" data-id="<%= b.id.to_s %>"><%= t("news.approve") %></a></li> <li><a href="#" class="appoval_button" data-approve-link="<%= "/#{I18n.locale.to_s}/news/#{b.to_param}" %>" data-id="<%= b.id.to_s %>"><%= t("news.approve") %></a></li>
<% end %> <% end %>
<% end %> <% end %>