This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/components/topic-progress.hbs

20 lines
556 B
Handlebars

{{#unless hideProgress}}
{{yield}}
{{/unless}}
{{#if showBackButton}}
<div class="progress-back-container">
{{d-button label="topic.timeline.back" class="btn-primary progress-back" action=(action "goBack") icon="arrow-down"}}
</div>
{{/if}}
<nav title={{i18n "topic.progress.title"}} class={{if hideProgress "hidden"}} id="topic-progress">
<div class="nums">
<h4>{{progressPosition}}</h4>
<span class={{if hugeNumberOfPosts "hidden"}}>
<span>/</span>
<h4>{{postStream.filteredPostsCount}}</h4>
</span>
</div>
</nav>