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.
19 lines
565 B
Handlebars
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}}
|