diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-18 02:26:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 02:26:51 +0200 |
commit | 1e02dc871533de78174b48a6a527f11b0f2bc7ec (patch) | |
tree | 85342796b125279d75c6591ef8b9090a11b8b404 /app/views/accounts | |
parent | 919eef309820a421d6f5886b8ae811d3924cea97 (diff) |
Add preference to hide following/followers lists (#7532)
* Add preference to hide following/followers lists - Public pages - ActivityPub collections (does not return pages but does give total) - REST API (unless it's your own) (does not federate) Fix #6901 * Add preference * Add delegation * Fix issue * Fix issue
Diffstat (limited to 'app/views/accounts')
-rw-r--r-- | app/views/accounts/_follow_grid.html.haml | 3 | ||||
-rw-r--r-- | app/views/accounts/_follow_grid_hidden.html.haml | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/accounts/_follow_grid.html.haml b/app/views/accounts/_follow_grid.html.haml index a6d0ee817..fdcef84be 100644 --- a/app/views/accounts/_follow_grid.html.haml +++ b/app/views/accounts/_follow_grid.html.haml @@ -1,5 +1,6 @@ -.accounts-grid +.accounts-grid{ class: accounts.empty? ? 'empty' : '' } - if accounts.empty? + = image_tag asset_pack_path('elephant_ui_greeting.svg'), alt: '', role: 'presentational' = render partial: 'accounts/nothing_here' - else = render partial: 'accounts/grid_card', collection: accounts, as: :account, cached: !user_signed_in? diff --git a/app/views/accounts/_follow_grid_hidden.html.haml b/app/views/accounts/_follow_grid_hidden.html.haml new file mode 100644 index 000000000..e970350e6 --- /dev/null +++ b/app/views/accounts/_follow_grid_hidden.html.haml @@ -0,0 +1,3 @@ +.accounts-grid.empty + = image_tag asset_pack_path('elephant_ui_greeting.svg'), alt: '', role: 'presentational' + %p.nothing-here= t('accounts.network_hidden') |