2021-03-25 18:11:00 +03:00
|
|
|
{{ define "post" }}
|
2021-03-25 18:25:40 +03:00
|
|
|
<!--
|
|
|
|
Post component.
|
|
|
|
|
|
|
|
How to use:
|
|
|
|
{ template "post" .Posts[0] }
|
|
|
|
-->
|
2021-03-25 18:11:00 +03:00
|
|
|
|
2021-03-26 11:11:14 +03:00
|
|
|
<div
|
|
|
|
id="{{ .MsgID }}"
|
2021-03-30 19:47:25 +03:00
|
|
|
class="card container dynamic-post p-3 mb-3 rounded">
|
2021-03-25 18:11:00 +03:00
|
|
|
<div class="card-body p-3">
|
|
|
|
<h3 class="card-title">
|
2021-03-30 19:47:25 +03:00
|
|
|
<a class="dynamic-post-title" href="/thread/{{ .TopicID }}#{{ .MsgID }}">{{ .Subg }}</a>
|
2021-03-25 18:11:00 +03:00
|
|
|
</h3>
|
|
|
|
<div class="card-subtitle text-white-50">
|
|
|
|
<p>
|
2021-03-30 19:47:25 +03:00
|
|
|
[<a href="/echo/{{ .Echo }}/page/1"
|
2021-03-25 18:11:00 +03:00
|
|
|
title="Go to {{ .Echo }} echo">{{ .Echo }}</a>]
|
|
|
|
{{ .Date }}
|
|
|
|
@<a
|
|
|
|
title="{{ .Author }} posts"
|
2021-03-30 19:47:25 +03:00
|
|
|
href="/find?query=author:{{ .Author }}">{{ .Author }}</a> ->
|
|
|
|
{{ if .Repto }}<a href="/msg/{{.Repto}}">{{ .To }}</a>
|
2021-03-25 18:11:00 +03:00
|
|
|
{{ else }}{{ .To }}{{ end }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="card-text dynamic-post-text">
|
|
|
|
{{ .Message }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer text-white-50">
|
2021-03-30 19:47:25 +03:00
|
|
|
[<a href="/msg/{{ .MsgID }}">#</a>] [<a href="#{{ .MsgID }}">reply</a>]
|
2021-03-25 18:11:00 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ end }}
|