about summary refs log tree commit diff
path: root/config/locales
diff options
context:
space:
mode:
authorSasha Sorokin <dafri.nochiterov8@gmail.com>2020-01-11 08:14:45 +0700
committerEugen Rochko <eugen@zeonfederated.com>2020-01-11 02:14:45 +0100
commit36426ed4ad450320f4a4e598c41355a6d8faad66 (patch)
tree6147b29c13f01608f4b5e2ec35a4d7a75e5907d5 /config/locales
parent630b5136ec0c533154947bb3c410db63cd76426c (diff)
Use heading actions and placeholders in settings (#12801)
This commit:

- Refactors centered text blocks currently used for placeholders
  for empty tables and puts styles for it in separate class -
  .centered-text, simply aliasing text-align: center. Which is
  furtherly used in this commit.

- Improves applications settings page to use heading actions, moving
  "New application" button there, and displaying placeholder "You
  have no applications" in place of empty table.

- Improves custom emoji settings page to use heading action
  for "Upload" button, making it more easily accessible without
  need to scroll through all of the emojis.

- Improves email domain blocks settings page, moving "Add new" to the
  heading actions and using placeholder "No e-mail domains currently
  blacklisted" instead of showing empty table.
Diffstat (limited to 'config/locales')
-rw-r--r--config/locales/doorkeeper.en.yml1
-rw-r--r--config/locales/en.yml1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/locales/doorkeeper.en.yml b/config/locales/doorkeeper.en.yml
index 4e9c83a8f..2be2ef036 100644
--- a/config/locales/doorkeeper.en.yml
+++ b/config/locales/doorkeeper.en.yml
@@ -38,6 +38,7 @@ en:
         application: Application
         callback_url: Callback URL
         delete: Delete
+        empty: You have no applications.
         name: Name
         new: New application
         scopes: Scopes
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 6b52f4cad..660d0a4e1 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -339,6 +339,7 @@ en:
       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