Sha256: eccd63398dc81cfa6bf06507356f6b1f11164fb78373ea7306def73a75e26935

Contents?: true

Size: 659 Bytes

Versions: 17

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-success' %><%= 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-success' %>
<% end -%>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tkh_content-0.10.10 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.9 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.8 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.7 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.6 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.5.1 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.5 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.4 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.3 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.2 app/views/comments/_status_buttons.html.erb
tkh_content-0.10.1 app/views/comments/_status_buttons.html.erb
tkh_content-0.10 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.20 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.19 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.18 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.17 app/views/comments/_status_buttons.html.erb
tkh_content-0.9.16 app/views/comments/_status_buttons.html.erb