diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-12-07 16:37:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 16:37:32 +0100 |
commit | ecd303c097bf20aa971628ba8420a9f17f3dd1f7 (patch) | |
tree | 170630fe0763c27b687f75f02892956f2eecc32b /app/views | |
parent | c1c0f7c5161452ded4373e6aa1cc9f852f8836c1 (diff) |
Fix various things in the directory (#9449)
* Fix missing variable in directory page title * Order hashtags by number of people instead of alphabetically * Add icon to OpenGraph preview of directory page * Prevent line breaks in hashtags and ensure lowercase in the table
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/directories/index.html.haml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/directories/index.html.haml b/app/views/directories/index.html.haml index 7cd6b50d4..219950a51 100644 --- a/app/views/directories/index.html.haml +++ b/app/views/directories/index.html.haml @@ -1,12 +1,14 @@ - content_for :page_title do - = t('directories.explore_mastodon') + = t('directories.explore_mastodon', title: site_title) - content_for :header_tags do %meta{ name: 'description', content: t('directories.explanation') } - = opengraph 'og:site_name', site_title + = opengraph 'og:site_name', t('about.hosted_on', domain: site_hostname) + = opengraph 'og:type', 'website' = opengraph 'og:title', t('directories.explore_mastodon', title: site_title) = opengraph 'og:description', t('directories.explanation') + = opengraph 'og:image', File.join(root_url, 'android-chrome-192x192.png') .page-header %h1= t('directories.explore_mastodon', title: site_title) @@ -29,10 +31,10 @@ %td= account_link_to account %td.accounts-table__count = number_to_human account.statuses_count, strip_insignificant_zeros: true - %small= t('accounts.posts', count: account.statuses_count) + %small= t('accounts.posts', count: account.statuses_count).downcase %td.accounts-table__count = number_to_human account.followers_count, strip_insignificant_zeros: true - %small= t('accounts.followers', count: account.followers_count) + %small= t('accounts.followers', count: account.followers_count).downcase %td.accounts-table__count - if account.last_status_at.present? %time.time-ago{ datetime: account.last_status_at.iso8601, title: l(account.last_status_at) }= l account.last_status_at |