mastodon/app/views/admin/email_subscriptions/index.html.haml
Eugen Rochko ee88da4511
Add admin UI for managing email subscriptions (#38741)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2026-05-04 13:56:04 +00:00

29 lines
680 B
Plaintext

- content_for :page_title do
= t('.title')
- content_for :heading do
.heading-with-lead
%h1= t('.title')
%p.lead= t('.lead')
%hr.spacer/
- if @enabled
= render 'roles', roles: @roles
%hr.spacer/
= render 'accounts', accounts: @accounts
%hr.spacer/
= render 'compliance_settings'
%hr.spacer/
= render 'danger_zone', accounts: @accounts
- else
.simple_form
%p.lead= t('.disabled.description')
- if Rails.application.config.x.email_subscriptions
= link_to t('.disabled.get_started'), admin_email_subscriptions_setup_path, class: 'button'
- else
%aside.callout
.content
.body= t('.disabled.cannot_be_enabled')