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-queued-post.hbs
Robin Ward e47e0af123
FEATURE: Allow viewing of raw emails for reviewable queued posts (#7910)
If a post arrives via email but must be reviewed, we now show an
icon that can be clicked to view the raw contents of the email.

This is useful if Discourse's email parser is acting odd and the user
reviewing the post wants to know what the original contents were before
approving/rejecting the post.
2019-07-19 11:56:14 -04:00

28 lines
832 B
Handlebars

{{#reviewable-topic-link reviewable=reviewable tagName=''}}
<div class="title-text">
{{d-icon "plus-square" title="review.new_topic"}}
{{reviewable.payload.title}}
</div>
{{category-badge reviewable.category}}
{{reviewable-tags tags=reviewable.payload.tags tagName=''}}
{{#if reviewable.payload.via_email}}
<a href {{action "showRawEmail"}} class='show-raw-email'>
{{d-icon "far-envelope" title="post.via_email"}}
</a>
{{/if}}
{{/reviewable-topic-link}}
<div class='post-contents-wrapper'>
{{reviewable-created-by user=reviewable.created_by tagName=''}}
<div class='post-contents'>
{{reviewable-post-header reviewable=reviewable createdBy=reviewable.created_by tagName=''}}
<div class='post-body'>
{{cook-text reviewable.payload.raw}}
</div>
{{yield}}
</div>
</div>