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-flagged-post.hbs
Robin Ward 15c9b00307 FEATURE: Show edit indicator on review queue
If a flagged post has edits, show the pencil icon and pop up the history
window when clicked.
2019-05-03 11:21:33 -04:00

27 lines
743 B
Handlebars

<div class='flagged-post-header'>
{{reviewable-topic-link reviewable=reviewable tagName=''}}
{{#if hasEdits}}
<a {{action "showEditHistory"}}
class="has-edits {{historyClass}}"
title="{{i18n "post.last_edited_on"}} {{editedDate}}">
{{d-icon "pencil-alt"}}
</a>
{{/if}}
</div>
<div class='post-contents-wrapper'>
{{reviewable-created-by user=reviewable.target_created_by tagName=''}}
<div class='post-contents'>
{{reviewable-created-by-name user=reviewable.target_created_by tagName=''}}
<div class='post-body'>
{{#if reviewable.blank_post}}
<p>{{i18n "review.deleted_post"}}</p>
{{else}}
{{{reviewable.cooked}}}
{{/if}}
</div>
{{yield}}
</div>
</div>