plugins/ShinyCMS/app/components/shinycms/toolbar/discussions_component.html.erb
<%= t( 'shinycms.admin.discussion.toolbar' ) %>:
<% if admin_user.can? :hide, :discussions %>
<% if discussion.hidden? %>
<%= link_to t( 'show' ), shinycms.show_discussion_path( discussion ) %>
<% else %>
<%= link_to t( 'hide' ), shinycms.hide_discussion_path( discussion ) %>
<% end %>
/
<% end %>
<% if admin_user.can? :lock, :discussions %>
<% if discussion.locked? %>
<%= link_to t( 'unlock' ), shinycms.unlock_discussion_path( discussion ) %>
<% else %>
<%= link_to t( 'lock' ), shinycms.lock_discussion_path( discussion ) %>
<% end %>
<% end %>
|