Skip to content

Commit

Permalink
Add button to view the Hashtag on the instance from Hashtags in Moder…
Browse files Browse the repository at this point in the history
…ation UI (mastodon#31533)
  • Loading branch information
ThisIsMissEm authored Aug 22, 2024
1 parent 170c6e9 commit 376088f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app/javascript/styles/mastodon/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 6 additions & 3 deletions app/views/admin/tags/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ en:
name: Name
newest: Newest
oldest: Oldest
open: View Publicly
reset: Reset
review: Review status
search: Search
Expand Down

0 comments on commit 376088f

Please sign in to comment.