approve btn fix
This commit is contained in:
parent
f0f8d26cd9
commit
50783e56d3
|
@ -83,7 +83,7 @@
|
|||
<li><a href="#" class="delete text-error" rel="/admin/announcements/<%=b.id.to_s%>"><%= t(:delete_) %></a></li>
|
||||
<% 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}/announcement/#{b.to_param}" %>" data-id="<%= b.id.to_s %>"><%= t("announcement.approve") %></a></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Reference in New Issue