Sha256: d3af273ed4d2b0314fdb6764e7980c7e94db381793230555573818b0e10dc72b

Contents?: true

Size: 618 Bytes

Versions: 10

Compression:

Stored size: 618 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tkh_content-0.9.3 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.2 app/views/comments/_status_buttons.html.erb
tkh_content-0.4.7 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.1 app/views/comments/_status_buttons.html.erb
tkh_content-0.9 app/views/comments/_status_buttons.html.erb
tkh_content-0.4.6 app/views/comments/_status_buttons.html.erb
tkh_content-0.4.5 app/views/comments/_status_buttons.html.erb
tkh_content-0.4.4 app/views/comments/_status_buttons.html.erb
tkh_content-0.4.3 app/views/comments/_status_buttons.html.erb
tkh_content-0.4.2 app/views/comments/_status_buttons.html.erb