]> cat aescling's git repositories - mastodon.git/commitdiff
Improve public status page title (#5985)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 12 Dec 2017 02:56:30 +0000 (03:56 +0100)
committerGitHub <noreply@github.com>
Tue, 12 Dec 2017 02:56:30 +0000 (03:56 +0100)
app/views/stream_entries/show.html.haml
config/locales/en.yml

index 895a612470b4359df9c6b15ab4c2d41e9814881e..b52334a2899f1936c9c98c3925b6a77a42d154db 100644 (file)
@@ -1,3 +1,6 @@
+- content_for :page_title do
+  = t('statuses.title', name: display_name(@account), quote: truncate(@stream_entry.activity.text, length: 50, omission: '…'))
+
 - content_for :header_tags do
   - if @account.user&.setting_noindex
     %meta{ name: 'robots', content: 'noindex' }/
index d42fb642754bcde762db438bc68de85725f33817..ce6d7ee4114ece375dfb4cf76dd58b4eef2cc84e 100644 (file)
@@ -599,6 +599,7 @@ en:
       private: Non-public toot cannot be pinned
       reblog: A boost cannot be pinned
     show_more: Show more
+    title: '%{name}: "%{quote}"'
     visibilities:
       private: Followers-only
       private_long: Only show to followers