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/reviewable-claimed-topic.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

19 lines
565 B
Handlebars

{{#if enabled}}
<div class='reviewable-claimed-topic'>
{{#if claimedBy}}
<div class='claimed-by'>
{{avatar claimedBy imageSize="small"}}
<span class='claimed-username'>{{claimedBy.username}}</span>
</div>
{{d-button
icon="times"
class="btn-small unclaim"
action=(action "unclaim")
disabled=unassigning
title="review.unclaim.help"}}
{{else}}
{{d-button icon="user-plus" class="btn-small claim" title="review.claim.title" action=(action "claim")}}
{{/if}}
</div>
{{/if}}