]> cat aescling's git repositories - mastodon.git/commit
Use heading actions and placeholders in settings (#12801)
authorSasha Sorokin <dafri.nochiterov8@gmail.com>
Sat, 11 Jan 2020 01:14:45 +0000 (08:14 +0700)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 11 Jan 2020 01:14:45 +0000 (02:14 +0100)
commit36426ed4ad450320f4a4e598c41355a6d8faad66
tree6147b29c13f01608f4b5e2ec35a4d7a75e5907d5
parent630b5136ec0c533154947bb3c410db63cd76426c
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.
app/javascript/styles/mastodon/admin.scss
app/views/admin/custom_emojis/index.html.haml
app/views/admin/email_domain_blocks/index.html.haml
app/views/filters/index.html.haml
app/views/settings/applications/index.html.haml
config/locales/doorkeeper.en.yml
config/locales/en.yml