1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-14 16:26:23 -07:00
gochan/templates/manage_recentposts.html

31 lines
1.5 KiB
HTML

<form action="{{webPath "manage/recentposts"}}" method="GET">
<label for="boardid">Board:</label>
<select name="boardid" id="boardid">
<option value="0">All boards</option>
{{- range $b, $board := $.allBoards -}}
<option value="{{$board.ID}}" {{if eq $.boardid $board.ID}}selected{{end}}>/{{$board.Dir}}/ - {{$board.Title}}</option>
{{- end -}}
</select><br />
<label for="limit">Limit:</label>
<input type="number" name="limit" id="limit" value="{{$.limit}}" min="1"><br />
<input type="submit" />
</form><hr />
<table id="recentposts" class="mgmt-table">
<colgroup><col width="5%"><col width="15%"><col width="60%"><col width="15%"></colgroup>
<tr><th></th><th>Name</th><th>Message</th><th>Thumb</th></tr>
{{range $rp, $post := $.recentposts}}
<tr><td><a href="{{$post.WebPath}}" class="centered">Post</a></td>
<td><b>Name: </b> {{- if and (eq $post.Name "") (eq $post.Tripcode "")}}<span class="postername">Anonymous</span>{{end}}
{{- if ne $post.Name ""}}<span class="postername">{{$post.Name}}</span>{{end -}}
{{- if ne $post.Tripcode ""}}!<span class="tripcode">{{$post.Tripcode}}</span>{{end -}}<br />
<b>IP: </b> {{$post.IP}}<br />
<b>Board: </b>/{{$post.BoardDir}}/
</td>
<td>{{$post.Message}}</td>
<td>
{{- if eq $post.Filename "deleted" -}}
<div class="file-deleted-box centered" style="text-align:center;">File removed</div>
{{- else if ne $post.Filename "" -}}
<a href="{{$post.UploadPath}}" target="_blank" class="centered"><img src="{{$post.ThumbnailPath}}"></a>
{{end}}</td></tr>{{end}}
</table>