mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 00:30:57 +01:00
Only show recently used tags hint when they are present (#32120)
This commit is contained in:
parent
c9b0699964
commit
675ec1a0ad
1 changed files with 11 additions and 10 deletions
|
@ -10,16 +10,17 @@ module SettingsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def featured_tags_hint(recently_used_tags)
|
def featured_tags_hint(recently_used_tags)
|
||||||
safe_join(
|
recently_used_tags.present? &&
|
||||||
[
|
safe_join(
|
||||||
t('simple_form.hints.featured_tag.name'),
|
[
|
||||||
safe_join(
|
t('simple_form.hints.featured_tag.name'),
|
||||||
links_for_featured_tags(recently_used_tags),
|
safe_join(
|
||||||
', '
|
links_for_featured_tags(recently_used_tags),
|
||||||
),
|
', '
|
||||||
],
|
),
|
||||||
' '
|
],
|
||||||
)
|
' '
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def session_device_icon(session)
|
def session_device_icon(session)
|
||||||
|
|
Loading…
Reference in a new issue