mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-05 16:56:23 -07:00
40 lines
2.3 KiB
HTML
40 lines
2.3 KiB
HTML
{{define "uploadinfo" -}}
|
|
<div class="file-info">
|
|
File: <a href="{{$.global.webroot}}{{.board.Dir}}/src/{{.post.Filename}}" target="_blank">{{$.post.Filename}}</a> - ({{formatFilesize $.post.Filesize}} , {{$.post.ImageW}}x{{$.post.ImageH}}, <a href="{{$.global.webroot}}{{.board.Dir}}/src/{{.post.Filename}}" class="file-orig" download="{{.post.FilenameOriginal}}">{{.post.FilenameOriginal}}</a>)
|
|
</div>
|
|
{{- end -}}
|
|
{{define "nameline"}}
|
|
<input type="checkbox" id="check{{.post.ID}}" name="check{{.post.ID}}" />
|
|
<label class="post-info" for="check{{.post.ID}}"><span class="subject">{{.post.Subject}}</span> <span class="postername">
|
|
{{- if ne .post.Email ""}}<a href="mailto:{{.post.Email}}">{{end}}
|
|
{{- if and (eq .post.Name "") (eq .post.Tripcode "") -}}
|
|
{{.board.Anonymous}}
|
|
{{- else -}}
|
|
{{.post.Name}}
|
|
{{- end -}}
|
|
{{- if ne .post.Email ""}}</a>{{end}}</span>
|
|
{{- if ne .post.Tripcode ""}}<span class="tripcode">!{{.post.Tripcode}}</span>{{end}} {{formatTimestamp .post.Timestamp -}}
|
|
</label><a href="{{$.global.webroot}}{{.board.Dir}}/res/{{if isOP $.post}}{{$.post.ID}}{{else}}{{$.post.ParentID}}{{end}}.html#{{.post.ID}}">No.</a> <a href="javascript:quote({{.post.ID}})" class="backlink-click">{{.post.ID}}</a> <span class="post-links"></span>
|
|
{{if $.is_board_page}}
|
|
[<a href="{{$.global.webroot}}{{$.board.Dir}}/res/{{$.post.ID}}.html">View</a>]
|
|
{{end}}<br />
|
|
{{- end -}}
|
|
{{- if isOP $.post -}}
|
|
<div class="op-post post" id="op{{$.post.ID}}">
|
|
{{- else -}}
|
|
<div id="replycontainer{{.post.ID}}" class="reply-container">
|
|
<div class="reply" id="reply{{.post.ID}}">
|
|
<a class="anchor" id="{{$.post.ID}}"></a>
|
|
{{- end -}}
|
|
{{if not (isOP $.post)}}{{template "nameline" .}}{{end -}}
|
|
|
|
{{- if eq $.post.Filename "deleted" -}}
|
|
<div class="file-deleted-box" style="text-align:center;">File removed</div>
|
|
{{- else if ne $.post.Filename "" -}}
|
|
{{- template "uploadinfo" . -}}
|
|
<a class="upload-container" href="{{.global.webroot}}{{.board.Dir}}/src/{{.post.Filename}}"><img src="{{.global.webroot}}{{.board.Dir}}/thumb/{{getThreadThumbnail .post.Filename}}" alt="{{$.global.webroot}}{{$.board.Dir}}/src/{{.post.Filename}}" width="{{.post.ThumbW}}" height="{{.post.ThumbH}}" class="upload" /></a>
|
|
{{- end -}}
|
|
{{- if isOP $.post}}{{template "nameline" .}}{{end -}}
|
|
<div class="post-text">{{.post.MessageHTML}}</div>
|
|
</div>{{if not (isOP $.post)}}
|
|
{{if not (isOP $.post)}}</div>{{end}}{{end}}
|