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/review-topics.hbs
Robin Ward b380ed5282 FEATURE: Claim Reviewables by Topic
This is a feature that used to be present in discourse-assign but is
much easier to implement in core. It also allows a topic to be assigned
without it claiming for review and vice versa and allows it to work with
category group reviewers.
2019-05-09 13:40:36 -04:00

40 lines
1.2 KiB
Handlebars

{{#if reviewableTopics}}
<table class='reviewable-topics'>
<thead>
<th>{{i18n "review.topics.topic"}} </th>
<th>{{i18n "review.topics.reviewable_count"}}</th>
<th>{{i18n "review.topics.reported_by"}}</th>
<th></th>
</thead>
<tbody>
{{#each reviewableTopics as |rt|}}
<tr class='reviewable-topic'>
<td class="topic-title">
<div class='combined-title'>
{{topic-status topic=rt}}
<a href={{rt.relative_url}} target="_blank">{{replace-emoji rt.fancy_title}}</a>
</div>
</td>
<td class="reviewable-count">
{{rt.stats.count}}
</td>
<td class="reported-by">
{{i18n "review.topics.unique_users" count=rt.stats.unique_users}}
</td>
<td class="reviewable-details">
{{reviewable-claimed-topic topicId=rt.id claimedBy=rt.claimed_by}}
{{#link-to "review.index" (query-params topic_id=rt.id) class="btn btn-primary btn-small"}}
{{d-icon "list"}}
<span>{{i18n "review.topics.details"}}</span>
{{/link-to}}
</td>
</tr>
{{/each}}
</tbody>
</table>
{{else}}
<div class="no-review">
{{i18n "review.none"}}
</div>
{{/if}}