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/default/post.mustache

69 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-01-12 19:24:51 +05:00
<div id="{{post.PostHash}}" class="{{post.CSSClass}} post"
2016-07-18 16:51:15 +05:00
data-frontend="{{post.Frontend}}"
data-newsgroup="{{post.Board}}"
data-msgid="{{post.MessageID}}"
data-msgidhash="{{post.PostHash}}"
data-rootmsgid="{{post.Reference}}"
data-rootmsgidhash="{{post.ReferenceHash}}"
{{#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-posturl="{{post.PostURL}}">
2017-02-05 21:21:56 +05:00
<div class="postheader-outer">
<div class="postheader">
<span class="origin">
{{#post.IsI2P}}
2016-02-28 17:40:16 +05:00
<img src="{{post.Prefix}}static/i2p.png" title="{{#i18n.Translations}}{{from_i2p}}{{/i18n.Translations}}" />
{{/post.IsI2P}}
{{#post.IsTor}}
2016-02-28 17:40:16 +05:00
<img src="{{post.Prefix}}static/tor.png" title="{{#i18n.Translations}}{{from_tor}}{{/i18n.Translations}}" />
{{/post.IsTor}}
{{#post.IsClearnet}}
2016-02-28 17:40:16 +05:00
<img src="{{post.Prefix}}static/clearnet.png" title="{{#i18n.Translations}}{{from_clearnet}}{{/i18n.Translations}}" />
{{/post.IsClearnet}}
2016-07-18 16:51:15 +05:00
</span>
2017-02-05 21:13:15 +05:00
<span class="subject">{{post.Subject}}</span>
<span class="name">{{post.Name}}</span><span class="tripcode">{{{post.Pubkey}}}</span>
<time datetime="{{post.DateRFC}}">{{post.Date}}</time>
2017-02-05 21:21:56 +05:00
</div>
2016-07-18 17:08:03 +05:00
<div class="postreply">
2017-01-12 19:30:38 +05:00
<a class="postno" onclick="nntpchan_reply(this, '{{post.ShortHash}}');" root="{{post.Reference}}" boardname="{{post.Board}}">&gt;&gt;{{post.ShortHash}}</a>
<a href="{{post.PostURL}}">[{{#i18n.Translations}}{{reply_label}}{{/i18n.Translations}}]</a>
2017-02-05 21:16:28 +05:00
<span class="postreport">
2017-01-12 19:30:38 +05:00
<label for="report_{{post.PostHash}}">[x]</label>
2017-01-12 19:24:51 +05:00
<input type="checkbox" id="report_{{post.PostHash}}">
2017-02-05 21:17:18 +05:00
<span style="display: none;" onclick="nntpchan_report('{{post.MessageID}}', '{{post.PostHash}}', '{{post.Reference}}', '{{post.ReferenceHash}}')">
<span class="mod-delete">
2017-01-12 19:30:38 +05:00
[delete]
2017-02-05 21:17:18 +05:00
</span>
</span>
2017-02-05 21:16:28 +05:00
</span>
2016-07-18 17:08:03 +05:00
</div>
</div>
<hr>
2016-02-29 19:06:13 +05:00
<div class="attachments">
{{#post.Attachments}}
2016-07-18 16:51:15 +05:00
<figure data-sha512="{{Hash}}">
2015-11-07 20:37:18 +05:00
<figcaption>
2016-05-22 23:22:12 +05:00
<a class="download_link" href="{{Source}}" download="{{Filename}}">{{#i18n.Translations}}{{download_prompt}}{{/i18n.Translations}}</a>
2016-04-27 18:36:57 +05:00
<a class="file" href="{{Source}}" title="{{Filename}}" target="_blank"><img src="{{Thumbnail}}" alt="{{Filename}}" class="thumbnail"/></a>
2016-05-23 01:51:26 +05:00
<a class="fname_link" title="{{Filename}}" href="{{Source}}">{{Filename}}</a>
2015-11-07 20:37:18 +05:00
</figcaption>
</figure>
{{/post.Attachments}}
2016-02-29 19:06:13 +05:00
</div>
2016-02-16 01:20:37 +05:00
<div class="post_body">
2016-10-07 16:25:30 +05:00
<pre>{{{post.RenderBody}}}</pre>
2016-07-18 18:59:53 +05:00
</div>
<hr>
2016-02-15 21:06:59 +05:00
</div>