logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

show.html.haml (646B)


  1. - content_for :page_title do
  2. = t('admin.domain_blocks.show.title', domain: @domain_block.domain)
  3. = simple_form_for @domain_block, url: admin_domain_block_path(@domain_block), method: :delete do |f|
  4. - if (@domain_block.noop?)
  5. = f.input :retroactive,
  6. as: :hidden,
  7. input_html: { :value => "0" }
  8. - else
  9. = f.input :retroactive,
  10. as: :boolean,
  11. wrapper: :with_label,
  12. label: t(".retroactive.#{@domain_block.severity}"),
  13. hint: t(:affected_accounts,
  14. scope: [:admin, :domain_blocks, :show],
  15. count: @domain_block.accounts_count)
  16. .actions
  17. = f.button :button, t('.undo'), type: :submit