diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-04-15 17:07:49 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-04-15 17:07:49 +0200 |
commit | 66ad30db489ddb2b3ecc98d284aabd47c9d4ae84 (patch) | |
tree | d8f035139c20e59c39bb35a74686783094c297da /app/views/settings/aliases | |
parent | 615073df33b9a4317ac5c93fdef83c9cd34567fa (diff) | |
parent | 5524258da9bc1d62b1396d19c672d3a8335ffbc5 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - `package.json`: No real conflict, upstream updated a dependency which is textually adjacent to a glitch-soc-specific dependency. Updated it. - `yarn.lock`: No real conflict, upstream updated a dependency which is textually adjacent to a glitch-soc-specific dependency. Updated it.
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 } |