This allows the discourse-tagging plugin to correctly use two rows in the header if it needs to display tags, or one row if there are no tags. This works in tandem with the same logic for when there is a category badge to display or not.
22 lines
691 B
Handlebars
22 lines
691 B
Handlebars
<div class="extra-info-wrapper">
|
|
<div {{bind-attr class=":extra-info needsSecondRow:two-rows"}}>
|
|
<div class="title-wrapper">
|
|
<h1>
|
|
{{#if showPrivateMessageGlyph}}
|
|
<span class="private-message-glyph">{{fa-icon "envelope"}}</span>
|
|
{{/if}}
|
|
|
|
{{#if topic.details.loaded}}
|
|
{{topic-status topic=topic}}
|
|
<a class='topic-link' href='{{unbound topic.url}}' {{action "jumpToTopPost"}}>{{{topic.fancy_title}}}</a>
|
|
{{else}}
|
|
{{#if topic.errorLoading}}
|
|
<span class="error">{{topic.errorTitle}}</span>
|
|
{{/if}}
|
|
{{/if}}
|
|
</h1>
|
|
{{topic-category topic=topic}}
|
|
</div>
|
|
</div>
|
|
</div>
|