diff options
author | nullkal <nullkal@nil.nu> | 2017-10-08 03:26:43 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-07 20:26:43 +0200 |
commit | 633426b2616e8559acfa76f4294a51afcf434fc2 (patch) | |
tree | 38759fbbd11bb3b40bc29e1a0f8ce048d15c7ce3 /config | |
parent | f486ef2666dacbcb6fcd26e371bb5e945369dcfe (diff) |
Add moderation note (#5240)
* Add moderation note * Add frozen_string_literal * Make rspec pass
Diffstat (limited to 'config')
-rw-r--r-- | config/locales/en.yml | 10 | ||||
-rw-r--r-- | config/routes.rb | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml index 82041be24..7d2596fc6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -76,6 +76,7 @@ en: silenced: Silenced suspended: Suspended title: Moderation + moderation_notes: Moderation notes most_recent_activity: Most recent activity most_recent_ip: Most recent IP not_subscribed: Not subscribed @@ -109,6 +110,15 @@ en: unsubscribe: Unsubscribe username: Username web: Web + + account_moderation_notes: + account: Moderator + created_at: Date + create: Create + created_msg: Moderation note successfully created! + delete: Delete + destroyed_msg: Moderation note successfully destroyed! + custom_emojis: copied_msg: Successfully created local copy of the emoji copy: Copy diff --git a/config/routes.rb b/config/routes.rb index bd7068b5c..5a6351f77 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -147,6 +147,8 @@ Rails.application.routes.draw do post :disable end end + + resources :account_moderation_notes, only: [:create, :destroy] end get '/admin', to: redirect('/admin/settings/edit', status: 302) |