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
|
|
|
|
|
|
|
<div class="card container dynamic-post dynamic-opacity-95 p-3 mb-3">
|
|
|
|
<div class="card-body p-3">
|
|
|
|
<h3 class="card-title">
|
|
|
|
<a class="dynamic-post-title" href="/ssr#{{ .TopicID }}">{{ .Subg }}</a>
|
|
|
|
</h3>
|
|
|
|
<div class="card-subtitle text-white-50">
|
|
|
|
<p>
|
|
|
|
[<a href="/ssr#{{ .Echo }}"
|
|
|
|
title="Go to {{ .Echo }} echo">{{ .Echo }}</a>]
|
|
|
|
{{ .Date }}
|
|
|
|
@<a
|
|
|
|
title="{{ .Author }} posts"
|
|
|
|
href="/ssr#/author/{{ .Author }}">{{ .Author }}</a> ->
|
|
|
|
{{ if .Repto }}<a href="/ssr#{{.Repto}}">{{ .To }}</a>
|
|
|
|
{{ else }}{{ .To }}{{ end }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="card-text dynamic-post-text">
|
|
|
|
{{ .Message }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer text-white-50">
|
|
|
|
[<a href="/ssr#{{ .MsgID }}">#</a>] [<a href="/ssr#{{ .MsgID }}">reply</a>]
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ end }}
|