color: $primary-text-color;
}
}
+
+.center-text {
+ text-align: center;
+}
- content_for :header_tags do
= javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
+- content_for :heading_actions do
+ = link_to t('admin.custom_emojis.upload'), new_admin_custom_emoji_path, class: 'button'
+
.filters
.filter-subset
%strong= t('admin.accounts.location.title')
= paginate @custom_emojis
-%hr.spacer/
-
-= link_to t('admin.custom_emojis.upload'), new_admin_custom_emoji_path, class: 'button'
- content_for :page_title do
= t('admin.email_domain_blocks.title')
-.table-wrapper
- %table.table
- %thead
- %tr
- %th= t('admin.email_domain_blocks.domain')
- %th
- %tbody
- = render @email_domain_blocks
+- content_for :heading_actions do
+ = link_to t('admin.email_domain_blocks.add_new'), new_admin_email_domain_block_path, class: 'button'
+
+- if @email_domain_blocks.count == 0
+ %div.muted-hint.center-text=t 'admin.email_domain_blocks.empty'
+- else
+ .table-wrapper
+ %table.table
+ %thead
+ %tr
+ %th= t('admin.email_domain_blocks.domain')
+ %th
+ %tbody
+ = render @email_domain_blocks
= paginate @email_domain_blocks
-= link_to t('admin.email_domain_blocks.add_new'), new_admin_email_domain_block_path, class: 'button'
= link_to t('filters.new.title'), new_filter_path, class: 'button'
- if @filters.count == 0
- %div{ style: 'display: flex; justify-content: center' }
- %div.muted-hint= t 'filters.index.empty'
+ %div.muted-hint.center-text= t 'filters.index.empty'
- else
.table-wrapper
%table.table
- content_for :page_title do
= t('doorkeeper.applications.index.title')
-.table-wrapper
- %table.table
- %thead
- %tr
- %th= t('doorkeeper.applications.index.application')
- %th= t('doorkeeper.applications.index.scopes')
- %th
- %tbody
- - @applications.each do |application|
+- content_for :heading_actions do
+ = link_to t('doorkeeper.applications.index.new'), new_settings_application_path, class: 'button'
+
+- if @applications.count == 0
+ %div.muted-hint.center-text=t 'doorkeeper.applications.index.empty'
+- else
+ .table-wrapper
+ %table.table
+ %thead
%tr
- %td= link_to application.name, settings_application_path(application)
- %th= application.scopes
- %td
- = table_link_to 'times', t('doorkeeper.applications.index.delete'), settings_application_path(application), method: :delete, data: { confirm: t('doorkeeper.applications.confirmations.destroy') }
+ %th= t('doorkeeper.applications.index.application')
+ %th= t('doorkeeper.applications.index.scopes')
+ %th
+ %tbody
+ - @applications.each do |application|
+ %tr
+ %td= link_to application.name, settings_application_path(application)
+ %th= application.scopes
+ %td
+ = table_link_to 'times', t('doorkeeper.applications.index.delete'), settings_application_path(application), method: :delete, data: { confirm: t('doorkeeper.applications.confirmations.destroy') }
= paginate @applications
-= link_to t('doorkeeper.applications.index.new'), new_settings_application_path, class: 'button'
application: Application
callback_url: Callback URL
delete: Delete
+ empty: You have no applications.
name: Name
new: New application
scopes: Scopes
delete: Delete
destroyed_msg: Successfully deleted e-mail domain from blacklist
domain: Domain
+ empty: No e-mail domains currenly blacklisted.
new:
create: Add domain
title: New e-mail blacklist entry