mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-02 15:06:23 -07:00
53 lines
No EOL
2.2 KiB
HTML
53 lines
No EOL
2.2 KiB
HTML
{{define "uploadinfo" -}}
|
|
<div class="file-info">
|
|
File: <a href="../{{.BoardDir}}/src/{{.Filename}}" target="_blank">{{.Filename}}</a> - ({{formatFilesize .Filesize}}{{if and (gt .UploadHeight 0) (gt .UploadWidth 0)}}, {{.UploadWidth}}x{{.UploadHeight}}{{end}}, <a href="../{{.BoardDir}}/src/{{.Filename}}" class="file-orig" download="{{.OriginalFilename}}">{{.OriginalFilename}}</a>)
|
|
</div>
|
|
{{- end -}}
|
|
<fieldset>
|
|
<legend>Search</legend>
|
|
<form method="GET" action="{{webPath "manage/ipsearch"}}" class="staff-form">
|
|
<label for="ip">IP Address</label>
|
|
<input type="text" name="ip" id="ipquery" value="{{.ipQuery}}"><br />
|
|
<label for="number">Max results</label>
|
|
<input type="number" name="limit" min="1" max="200" value="{{.limit}}"/><br/>
|
|
<input type="submit" value="Search">
|
|
</form>
|
|
</fieldset>
|
|
{{with .reverseAddrs}}
|
|
<fieldset>
|
|
<legend>Info for IP address {{$.ipQuery}}</legend>
|
|
<b>Reverse address results:</b>
|
|
<ul>
|
|
{{range $a, $addr := .}}<li>{{$addr}}</li>{{end}}
|
|
</ul>
|
|
</fieldset>
|
|
{{- end -}}
|
|
{{with .posts -}}
|
|
<hr/>
|
|
<header><h2>Posts from IP</h2></header>
|
|
{{$global := .}}
|
|
{{range $p, $post := .}}
|
|
<div id="replycontainer{{.ID}}" class="reply-container">
|
|
<div id="reply{{.ID}}" class="reply">
|
|
<a class="anchor" id="{{.ID}}"></a>
|
|
<input type="checkbox" id="check{{.ID}}" name="check{{.ID}}">
|
|
<label class="post-info" for="check39">
|
|
<span class="subject">{{.Subject}}</span>
|
|
<span class="postername">
|
|
{{- if ne .Email ""}}<a href="mailto:{{.Email}}">{{end}}
|
|
{{- if and (eq .Name "") (eq .Tripcode "") -}}Anonymous{{else}}{{.Name}}{{end}}
|
|
{{- if ne .Email ""}}</a>{{end -}}
|
|
</span>
|
|
{{- if ne .Tripcode ""}}<span class="tripcode">!{{.Tripcode}}</span>{{end}} {{formatTimestamp .Timestamp}}</label>
|
|
<a href="{{.WebPath}}" target="_blank">No. {{.ID}}</a><br/>
|
|
{{- if eq .Filename "deleted" -}}
|
|
<div class="file-deleted-box" style="text-align:center;">File removed</div>
|
|
{{- else if ne .Filename "" -}}
|
|
{{- template "uploadinfo" . -}}
|
|
<a class="upload-container" href="{{.UploadPath}}"><img src="{{.ThumbnailPath}}" alt="{{.UploadPath}}" width="{{.ThumbnailWidth}}" height="{{.ThumbnailHeight}}" class="upload" /></a>
|
|
{{- end -}}
|
|
{{.Message}}
|
|
|
|
</div>
|
|
</div>
|
|
{{- end}}{{end}} |