From 376088f6da71e0250e144cc57b42d0dc18822317 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Thu, 22 Aug 2024 10:42:33 +0200 Subject: [PATCH] Add button to view the Hashtag on the instance from Hashtags in Moderation UI (#31533) --- app/javascript/styles/mastodon/admin.scss | 5 +++++ app/views/admin/tags/show.html.haml | 9 ++++++--- config/locales/en.yml | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/javascript/styles/mastodon/admin.scss b/app/javascript/styles/mastodon/admin.scss index fd9515cfef..120bad27ed 100644 --- a/app/javascript/styles/mastodon/admin.scss +++ b/app/javascript/styles/mastodon/admin.scss @@ -244,6 +244,11 @@ $content-width: 840px; display: inline-flex; flex-flow: wrap; gap: 5px; + align-items: center; + + .time-period { + padding: 0 10px; + } } h2 small { diff --git a/app/views/admin/tags/show.html.haml b/app/views/admin/tags/show.html.haml index f6155575ae..93387843b2 100644 --- a/app/views/admin/tags/show.html.haml +++ b/app/views/admin/tags/show.html.haml @@ -3,9 +3,12 @@ - content_for :heading_actions do - if current_user.can?(:view_dashboard) - = l(@time_period.first) - = ' - ' - = l(@time_period.last) + .time-period + = l(@time_period.first) + = ' - ' + = l(@time_period.last) + + = link_to t('admin.tags.open'), tag_url(@tag), class: 'button', target: '_blank', rel: 'noopener noreferrer' - if current_user.can?(:view_dashboard) .dashboard diff --git a/config/locales/en.yml b/config/locales/en.yml index 1df9af88d9..99dcb657f4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -898,6 +898,7 @@ en: name: Name newest: Newest oldest: Oldest + open: View Publicly reset: Reset review: Review status search: Search