small fix for approve
This commit is contained in:
parent
df77e37a70
commit
036de05be5
|
@ -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? %>
|
||||
<% if !b.rejected && !b.approved && user_can_approve? && !b.expired? %>
|
||||
<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