mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-23 06:42:33 +03:00
fbe39f45a3
* feat: header component * feat: captcha component * feat: rename all html files * feat: update github link * feat: all templates in subfolders * feat: separate thread card * feat: separate pagination * feat: update pagination * feat: separate post * lint
20 lines
611 B
HTML
20 lines
611 B
HTML
{{ define "post" }}
|
|
<div class="post-container mb-4">
|
|
{{ $filesLength := len .Files }}
|
|
{{ if gt $filesLength 0 }}
|
|
<div class="files-container">
|
|
{{ range $File := .Files }}
|
|
<div class="file-container">
|
|
<a href="/uploads/{{.getThreadID}}/o/{{$File.ID}}.{{$File.Ext}}" target="blank">
|
|
<img src="/uploads/{{.getThreadID}}/t/{{$File.ID}}.{{$File.Ext}}" class="file" alt="Uploaded picture">
|
|
</a>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="p-2">
|
|
<p class="card-text line-break text-break">{{.Text}}</p>
|
|
</div>
|
|
</div>
|
|
{{ end }} |