Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/templates/placebo/post.mustache
2019-02-10 14:33:06 -05:00

47 lines
2.0 KiB
Plaintext

<div id="{{post.PostHash}}"
{{#post.OP}}
class="messageroot post"
{{/post.OP}}
{{^post.OP}}
class="message post"
{{/post.OP}}
data-name="{{post.Name}}"
data-frontend="{{post.Frontend}}"
data-newsgroup="{{post.Board}}"
data-msgid="{{post.MessageID}}"
data-msgidhash="{{post.PostHash}}"
data-rootmsgid="{{post.Reference}}"
data-rootmsgidhash="{{post.ReferenceHash}}"
data-pubkey="{{post.PubkeyHex}}"
{{#post.Sage}}
data-sage="1"
{{/post.Sage}}
{{#post.IsI2P}}
data-origin="i2p"
{{/post.IsI2P}}
{{#post.IsTor}}
data-origin="tor"
{{/post.IsTor}}
{{#post.IsClearnet}}
data-origin="clearnet"
{{/post.IsClearnet}}
data-frontendpubkey="{{post.FrontendPubkey}}"
data-posturl="{{post.PostURL}}">
{{#post.Attachments}}
<a href="{{Source}}" class="image_link" target="_blank" title="{{Filename}}"><img src="{{Thumbnail}}" class="image" /></a>
{{/post.Attachments}}
<span onclick="nntpchan_mod_delete('{{post.PostHash}}');">[Delete]</span>
<span onclick="nntpchan_mod_mark_spam('{{post.PostHash}}');">[Spam]</span>
{{#post.IsCtl}}
<span onclick="nntpchan_mod_trust_mod('{{post.PubkeyHex}}', this);">[Trust Moderator]</span>
<span onclick="nntpchan_mod_untrust_mod('{{post.PubkeyHex}}', this);">[UnTrust Moderator]</span>
<span onclick="nntpchan_mod_decode_ipban('{{post.PostHash}}');">[Decode Secrets]</span>
{{/post.IsCtl}}
<a name="{{post.PostHash}}"></a><span class="topicline"><b data-subject="{{post.Subject}}" class="subject">{{post.Subject}}</b> {{post.Name}} <span class="published">{{post.Frontend}} || {{post.Date}}</span> {{{post.Pubkey}}} <a href="{{post.PostURL}}">[Reply]</a>
<a href="#" onclick="return quickreply('{{post.ShortHash}}', '{{post.PostHash}}', '{{post.PostURL}}');"> {{post.ShortHash}}</a>
</span>
<br /><br />
<span id="post_body_{{post.PostHash}}" class="message_span">{{{post.RenderBody}}}</span>
<br style="clear: both;" />
</div>