2019-11-29 15:08:18 -08:00
{{template "page_header.html" .}}
2019-12-06 20:03:37 -08:00
< header >
< h1 id = "board-title" > /{{$.board.Dir}}/ - {{$.board.Title}}< / h1 >
< span id = "board-subtitle" > {{$.board.Subtitle}}< / span >
< / header > < hr / >
< div id = "right-sidelinks" >
2021-07-11 16:30:39 -07:00
< a href = "{{.webroot}}{{.board.Dir}}/catalog.html" > Board catalog< / a > < br / >
2019-12-06 20:03:37 -08:00
< / div >
2022-08-23 13:22:16 -07:00
< div id = "threadlinks-top" >
< a href = "#footer" > Scroll to bottom< / a >
< / div >
2022-01-27 21:02:37 -08:00
{{- template "postbox.html" . -}}< hr / >
2022-09-23 15:50:18 -07:00
< form action = "{{.webroot}}util" method = "POST" id = "main-form" >
2022-01-27 21:02:37 -08:00
{{$global := .}}
{{- range $t, $thread := .threads}}{{$op := $thread.OP}}
< div class = "thread" >
{{- template "post.html" map "global" $global "board" $.board "post" $op "is_board_page" true -}}
{{- if gt $thread.NumReplies 3 -}}
< b > {{subtract $thread.NumReplies 3}} post{{if gt $thread.NumReplies 4}}s{{end}} omitted< / b > < br / >
{{- end -}}
{{- range $reply_num,$reply := $thread.BoardReplies -}}
{{- template "post.html" map "global" $global "board" $.board "post" $reply -}}
{{- 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 / >
2022-09-23 15:50:18 -07:00
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" / >
< 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" >
2022-08-23 13:22:16 -07:00
< a href = "#" > Scroll to top< / a > < br / >
2022-01-27 21:02:37 -08:00
< table id = "pages" >
< tr >
< td > {{if gt .board.CurrentPage 1}}
< form method = "GET" action = '{{.board.PagePath "prev"}}' >
< input type = "submit" value = "Previous" / >
< / form >
{{- else}}Previous{{end}}< / td >
< td > {{range $_,$i := makeLoop .board.NumPages 1 -}}
{{- if eq $.board.CurrentPage $i -}}
[< b > {{$i}}< / b > ]
{{- else -}}
[< a href = "{{$.board.PagePath $i }}" > {{$i}}< / a > ]
{{- end -}}
{{- end}}< / td >
< td > {{if lt .board.CurrentPage .board.NumPages}}
< form method = "GET" action = "{{.board.PagePath `next` }}" >
< input type = "submit" value = "Next" / >
< / form >
{{else}}Next{{end}}< / td >
< / tr >
< / table >
< span id = "boardmenu-bottom" >
[< a href = "{{$.webroot}}" > home< / a > ]
[{{range $i, $boardlink := $.boards -}}
2022-08-23 13:22:16 -07:00
{{- if gt $i 0}}/{{end}} < a href = "{{$boardlink.WebPath `` `boardPage`}}/" > {{$boardlink.Dir}}< / a > {{end}}]
2022-01-27 21:02:37 -08:00
< / span >
2019-12-06 20:03:37 -08:00
< / div >
2022-01-27 21:02:37 -08:00
{{- template "page_footer.html" .}}