Sha256: 8638e6e9864681b45a936d2c8aaff6be8e0258fcae93c22436b081aa6d2316e3

Contents?: true

Size: 659 Bytes

Versions: 12

Compression:

Stored size: 659 Bytes

Contents

<% if comment.status == 'pending' %>
	<%= link_to t('comments.moderation.actions.accept'), accept_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %><%= link_to t('comments.moderation.actions.block'), block_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %>
<% elsif comment.status == 'accepted' %>
	<%= link_to t('comments.moderation.actions.block'), block_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %>
<% elsif comment.status == 'blocked' %>
	<%= link_to t('comments.moderation.actions.accept'), accept_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %>
<% end -%>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tkh_content-0.9.15 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.14 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.13 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.12 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.11 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.10 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.9 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.8 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.7 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.6 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.5 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.4 app/views/comments/_status_buttons.html.erb