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

56 lines
2.2 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="{{.webroot}}{{.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="{{.webroot}}util" method="POST" id="main-form">
2022-01-27 21:02:37 -08:00
{{$global := .}}
{{- range $t, $thread := .threads}}{{$op := index $thread.Posts 0}}
2022-01-27 21:02:37 -08:00
<div class="thread">
{{- template "post.html" map "global" $global "board" $.board "post" $op "is_board_page" true -}}
{{- if gt $thread.Replies 3 -}}
<b>{{subtract $thread.Replies 3}} post{{if gt $thread.Replies 4}}s{{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">
<a href="#">Scroll to top</a><br/>
2022-01-27 21:02:37 -08:00
<table id="pages">
<tr>
<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>
</tr>
</table>
<span id="boardmenu-bottom">
[<a href="{{$.webroot}}">home</a>]&nbsp;
[{{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" .}}