about summary refs log tree commit diff
path: root/app/views/directories/index.html.haml
diff options
context:
space:
mode:
authorpluralcafe-docker <git@plural.cafe>2019-01-21 04:35:41 +0000
committerpluralcafe-docker <git@plural.cafe>2019-01-21 04:35:41 +0000
commit657438e95054ba1f161db698acdf7f1a871d1c9c (patch)
treea3344b6105b7771983f69c789fb2f7a0c22a8583 /app/views/directories/index.html.haml
parentd899138556513c8a5fa3397606ecc4752b7c6785 (diff)
parentb7c67605d5c2110b4a3cd3d8a7b8ef2878cbfe48 (diff)
Merge branch 'master' into production
Diffstat (limited to 'app/views/directories/index.html.haml')
-rw-r--r--app/views/directories/index.html.haml18
1 files changed, 16 insertions, 2 deletions
diff --git a/app/views/directories/index.html.haml b/app/views/directories/index.html.haml
index 9e1e65732..6608a5dcb 100644
--- a/app/views/directories/index.html.haml
+++ b/app/views/directories/index.html.haml
@@ -41,8 +41,22 @@
       = paginate @accounts
 
   .column-1
-    - if @tags.empty?
-      .nothing-here.nothing-here--flexible
+    - if user_signed_in?
+      .box-widget.notice-widget
+        - if current_account.discoverable?
+          - if current_account.followers_count < Account::MIN_FOLLOWERS_DISCOVERY
+            %p= t('directories.enabled_but_waiting', min_followers: Account::MIN_FOLLOWERS_DISCOVERY)
+          - else
+            %p= t('directories.enabled')
+        - else
+          %p= t('directories.how_to_enable')
+
+          = link_to settings_profile_path do
+            = t('settings.edit_profile')
+            = fa_icon 'chevron-right fw'
+
+    - if @tags.empty? && !user_signed_in?
+      .nothing-here
     - else
       - @tags.each do |tag|
         .directory__tag{ class: tag.id == @tag&.id ? 'active' : nil }