diff options
author | ThibG <thib@sitedethib.com> | 2020-04-13 06:41:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 06:41:43 +0200 |
commit | f7e011919e8819e0d706f15eab87b84fce6fd3c7 (patch) | |
tree | e098ead99e188bda09065087eb92505afe24783b /app/views/settings/aliases | |
parent | 490ff09c5a503f1e5f9cad964470fdefa3eabea8 (diff) |
Fix account aliases page (#13452)
* Fix error not being displayed when adding an account alias, add error for self-references Co-Authored-By: Mélanie Chauvel (ariasuni) <perso@hack-libre.org> * Add “You have no aliases.” note in confusing empty aliases table Co-Authored-By: Mélanie Chauvel (ariasuni) <perso@hack-libre.org> Co-authored-by: Mélanie Chauvel (ariasuni) <perso@hack-libre.org>
Diffstat (limited to 'app/views/settings/aliases')
-rw-r--r-- | app/views/settings/aliases/index.html.haml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/views/settings/aliases/index.html.haml b/app/views/settings/aliases/index.html.haml index 5b6986368..5df0c9669 100644 --- a/app/views/settings/aliases/index.html.haml +++ b/app/views/settings/aliases/index.html.haml @@ -23,7 +23,11 @@ %th= t('simple_form.labels.account_alias.acct') %th %tbody - - @aliases.each do |account_alias| + - if @aliases.empty? %tr - %td= account_alias.acct - %td= table_link_to 'trash', t('aliases.remove'), settings_alias_path(account_alias), data: { method: :delete } + %td.muted-hint{ colspan: 2 }= t('aliases.empty') + - else + - @aliases.each do |account_alias| + %tr + %td= account_alias.acct + %td= table_link_to 'trash', t('aliases.remove'), settings_alias_path(account_alias), data: { method: :delete } |