Implement EmailBlackList (#5109)
* Implement BlacklistedEmailDomain * Use Faker::Internet.domain_name * Remove note column * Add frozen_string_literal comment * Delete unnecessary codes * Sort alphabetically * Change of wording * Rename BlacklistedEmailDomain to EmailDomainBlock
This commit is contained in:
@ -152,6 +152,16 @@ en:
|
||||
undo: Undo
|
||||
title: Domain Blocks
|
||||
undo: Undo
|
||||
email_domain_blocks:
|
||||
add_new: Add new
|
||||
created_msg: Email domain block successfully created
|
||||
delete: Delete
|
||||
destroyed_msg: Email domain block successfully deleted
|
||||
domain: Domain
|
||||
new:
|
||||
create: Create block
|
||||
title: New email domain block
|
||||
title: Email Domain Block
|
||||
instances:
|
||||
account_count: Known accounts
|
||||
domain_name: Domain
|
||||
|
@ -152,6 +152,16 @@ ja:
|
||||
undo: 元に戻す
|
||||
title: ドメインブロック
|
||||
undo: 元に戻す
|
||||
email_domain_blocks:
|
||||
add_new: 新規追加
|
||||
created_msg: 処理を完了しました
|
||||
delete: 消去
|
||||
destroyed_msg: 消去しました
|
||||
domain: ドメイン
|
||||
new:
|
||||
create: ブロックを作成
|
||||
title: 新規メールドメインブロック
|
||||
title: メールドメインブロック
|
||||
instances:
|
||||
account_count: 既知のアカウント数
|
||||
domain_name: ドメイン名
|
||||
|
@ -26,6 +26,7 @@ SimpleNavigation::Configuration.run do |navigation|
|
||||
admin.item :instances, safe_join([fa_icon('cloud fw'), t('admin.instances.title')]), admin_instances_url, highlights_on: %r{/admin/instances}
|
||||
admin.item :subscriptions, safe_join([fa_icon('paper-plane-o fw'), t('admin.subscriptions.title')]), admin_subscriptions_url
|
||||
admin.item :domain_blocks, safe_join([fa_icon('lock fw'), t('admin.domain_blocks.title')]), admin_domain_blocks_url, highlights_on: %r{/admin/domain_blocks}
|
||||
admin.item :email_domain_blocks, safe_join([fa_icon('envelope fw'), t('admin.email_domain_blocks.title')]), admin_email_domain_blocks_url, highlights_on: %r{/admin/email_domain_blocks}
|
||||
admin.item :sidekiq, safe_join([fa_icon('diamond fw'), 'Sidekiq']), sidekiq_url, link_html: { target: 'sidekiq' }
|
||||
admin.item :pghero, safe_join([fa_icon('database fw'), 'PgHero']), pghero_url, link_html: { target: 'pghero' }
|
||||
admin.item :settings, safe_join([fa_icon('cogs fw'), t('admin.settings.title')]), edit_admin_settings_url
|
||||
|
@ -108,6 +108,7 @@ Rails.application.routes.draw do
|
||||
namespace :admin do
|
||||
resources :subscriptions, only: [:index]
|
||||
resources :domain_blocks, only: [:index, :new, :create, :show, :destroy]
|
||||
resources :email_domain_blocks, only: [:index, :new, :create, :destroy]
|
||||
resource :settings, only: [:edit, :update]
|
||||
|
||||
resources :instances, only: [:index] do
|
||||
|
Reference in New Issue
Block a user