{{! stream link }}
{{> stream_privacy .}}
{{~! Recipient (e.g. stream/topic or topic) ~}}
{{~display_recipient~}}
{{#if is_archived}}
({{t 'archived' }})
{{/if}}
{{! hidden narrow icon for copy-pasting }}
>
{{! topic stuff }}
{{! topic link }}
{{#if (and use_match_properties (not is_empty_string_topic))}}
{{{match_topic}}}
{{else}}
{{topic_display_name}}
{{/if}}
{{! exterior links (e.g. to a trac ticket) }}
{{#each topic_links}}
{{#with this}}
{{!-- TODO: Find a way to use the icon_button component with tags,
instead of copying over the icon button styles via the utility classes. --}}
{{/with}}
{{/each}}
{{! edit topic pencil icon }}
{{#if is_topic_editable}}
{{> components/icon_button icon="pencil" intent="neutral" custom_classes="on_hover_topic_edit recipient-bar-control recipient-bar-control-icon hidden-for-spectators" data-tippy-content=(t "Edit topic") aria-label=(t "Edit topic") }}
{{/if}}
{{#if (and user_can_resolve_topic (not is_empty_string_topic))}}
{{#unless topic_is_resolved}}
{{> components/icon_button icon="check" intent="neutral" custom_classes="on_hover_topic_resolve recipient-bar-control recipient-bar-control-icon hidden-for-spectators" data-tippy-content=(t "Mark as resolved") aria-label=(t "Mark as resolved") }}
{{/unless}}
{{/if}}
{{! visibility policy menu }}
{{#if (and is_subscribed (not is_archived))}}
{{!-- We define the change_visibility_policy class in a wrapper span
since the icon button component already has a tippy tooltip attached
to it and Tippy does not support multiple tooltips on a single element. --}}
{{#if (eq visibility_policy all_visibility_policies.FOLLOWED)}}
{{> components/icon_button icon="follow" intent="neutral" custom_classes="recipient-bar-control-icon" data-tippy-content=(t "You follow this topic.") aria-label=(t "You follow this topic.") }}
{{else if (eq visibility_policy all_visibility_policies.UNMUTED)}}
{{> components/icon_button icon="unmute" intent="neutral" custom_classes="recipient-bar-control recipient-bar-control-icon" data-tippy-content=(t "You have unmuted this topic.") aria-label=(t "You have unmuted this topic.") }}
{{else if (eq visibility_policy all_visibility_policies.MUTED)}}
{{> components/icon_button icon="mute" intent="neutral" custom_classes="recipient-bar-control-icon" data-tippy-content=(t "You have muted this topic.") aria-label=(t "You have muted this topic.") }}
{{else}}
{{> components/icon_button icon="inherit" intent="neutral" custom_classes="recipient-bar-control-icon" data-tippy-content=(t "Notifications are based on your configuration for this channel.") aria-label=(t "Notifications are based on your configuration for this channel.") }}
{{/if}}
{{/if}}
{{! Topic menu }}
{{!-- We define the recipient-row-topic-menu class in a wrapper span
since the icon button component already has a tippy tooltip attached
to it and attaching the topic actions menu popover to it causes buggy behavior. --}}
{{> components/icon_button icon="more-vertical" intent="neutral" custom_classes="recipient-bar-control-icon" data-tippy-content=(t "Topic actions") aria-label=(t "Topic actions") }}
{{{date}}}