1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-15 11:06:23 -07:00
gochan/templates/boardpage.html

64 lines
2.8 KiB
HTML
Raw Normal View History

{{template "page_header.html" .}}
<header>
<h1 id="board-title">/{{$.board.Dir}}/ - {{$.board.Title}}</h1>
<div id="board-subtitle">
{{$.board.Subtitle}}<br/>
<a href="{{webPath .board.Dir "/catalog.html"}}">Catalog</a> | <a href="#footer">Bottom</a>
</div>
</header><hr />
2022-01-27 21:02:37 -08:00
{{- template "postbox.html" . -}}<hr />
<form action="{{webPath "/util"}}" method="POST" id="main-form">
2022-01-27 21:02:37 -08:00
{{$global := .}}
{{- range $t, $thread := .threads}}{{$op := index $thread.Posts 0}}
<div class="thread {{if $thread.IsSpoilered}}spoiler-thread{{end}}">
2023-02-03 10:31:47 -08:00
{{- template "post.html" map "global" $global "board" $.board "post" $op "is_board_page" true "thread" $thread -}}
{{- if gt $thread.OmittedPosts 0 -}}
<b>{{$thread.OmittedPosts}} repl{{if gt $thread.OmittedPosts 1}}ies{{else}}y{{end}}{{if gt $thread.OmittedImages 0}} and {{$thread.OmittedImages}} upload{{if gt $thread.OmittedImages 1}}s{{end}}{{end}} omitted</b><br />
2022-01-27 21:02:37 -08:00
{{- end -}}
{{- range $r,$reply := $thread.Posts -}}
{{if gt $r 0}}
{{- template "post.html" map "global" $global "board" $.board "post" $reply -}}
{{end}}
2022-01-27 21:02:37 -08:00
{{- end -}}
</div><hr />
{{- end}}
<div id="right-bottom-content">
<div id="report-delbox">
<input type="hidden" name="board" value="{{.board.Dir}}" />
<input type="hidden" name="boardid" value="{{.board.ID}}" />
<label>[<input type="checkbox" name="fileonly"/>File only]</label> <input type="password" size="10" name="password" id="delete-password" /> <input type="submit" name="delete_btn" value="Delete" onclick="return confirm('Are you sure you want to delete these posts?')" /><br />
Report reason: <input type="text" size="10" name="reason" id="reason" /> <input type="submit" name="report_btn" value="Report" /><br />
<input type="submit" name="edit_btn" value="Edit post" />&nbsp;
<input type="submit" name="move_btn" value="Move thread" />
2015-12-24 23:26:13 -08:00
</div>
2018-04-06 01:03:57 -07:00
</div>
2022-01-27 21:02:37 -08:00
</form>
<div id="left-bottom-content">
2025-01-07 12:01:18 +01:00
<a href="#" onClick="window.location.reload(); return false;">Update</a>
|
<a href="#">Scroll to top</a><br/>
2022-01-27 21:02:37 -08:00
<table id="pages">
<tr>
{{- with .prevPage -}}
<td><a href="{{webPathDir "/" $.board.Dir (printf "%d.html" $.prevPage) }}">Prev</a></td>
{{- end -}}
<td>{{range $_,$i := makeLoop .numPages 1 -}}
{{- if eq $.currentPage $i -}}
2022-01-27 21:02:37 -08:00
[<b>{{$i}}</b>]
{{- else -}}
[<a href="{{boardPagePath $.board $i}}">{{$i}}</a>]
2022-01-27 21:02:37 -08:00
{{- end -}}
{{- end}}</td>
{{- with .nextPage -}}
<td><a href="{{webPathDir "/" $.board.Dir (printf "%d.html" $.nextPage) }}">Next</a></td>
{{- end -}}
2022-01-27 21:02:37 -08:00
</tr>
</table>
<span id="boardmenu-bottom">
[<a href="{{webPathDir `/`}}">home</a>]&nbsp;
2022-01-27 21:02:37 -08:00
[{{range $i, $boardlink := $.boards -}}
{{- if gt $i 0}}/{{end}} <a href="{{$boardlink.WebPath `` `boardPage`}}/">{{$boardlink.Dir}}</a> {{end}}]
2022-01-27 21:02:37 -08:00
</span>
</div>
2022-01-27 21:02:37 -08:00
{{- template "page_footer.html" .}}