plugins/ShinyCMS/app/views/shinycms/discussions/_moderation_links.html.erb
<%
return unless feature_enabled? :comments
return if discussion.blank?
return unless current_user_can?( :hide, :discussions ) || current_user_can?( :lock, :discussions )
%>
<div class="float-right smaller">
Discussion:
<% if discussion.hidden? %>
<%= link_to t( 'show' ), shinycms.show_discussion_path( discussion ) %>
<% else %>
<%= link_to t( 'hide' ), shinycms.hide_discussion_path( discussion ) %>
<% end %>
/
<% if discussion.locked? %>
<%= link_to t( 'unlock' ), shinycms.unlock_discussion_path( discussion ) %>
<% else %>
<%= link_to t( 'lock' ), shinycms.lock_discussion_path( discussion ) %>
<% end %>
</div>