about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-18 12:48:27 +0200
committerGitHub <noreply@github.com>2018-08-18 12:48:27 +0200
commit85bb32c410a975bf6154a78a82797f82713e2428 (patch)
treee94071f4cee5bc324ffc1977f02b72b9c0c47d36 /app/views
parent5059989cc743e18f05e3f5f95ad557d7f7f34afd (diff)
Add "sign in to participate" message to public toot page (#8200)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/stream_entries/_status.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/stream_entries/_status.html.haml b/app/views/stream_entries/_status.html.haml
index 320c9bc4f..92003a48f 100644
--- a/app/views/stream_entries/_status.html.haml
+++ b/app/views/stream_entries/_status.html.haml
@@ -53,3 +53,9 @@
   - if @next_descendant_thread
     .entry{ class: entry_classes }
       = link_to_more short_account_status_url(status.account.username, status, since_descendant_thread_id: @max_descendant_thread_id - 1)
+
+- if include_threads && !embedded_view? && !user_signed_in?
+  .entry{ class: entry_classes }
+    = link_to new_user_session_path, class: 'load-more load-gap' do
+      = fa_icon 'comments'
+      = t('statuses.sign_in_to_participate')