2013-06-09 12:11:57 -07:00
<!DOCTYPE html>
< html >
< head >
2015-12-28 13:24:34 -08:00
< meta charset = "UTF-8" >
2016-01-31 18:50:51 -08:00
< title > /{{$board.Dir}}/ - {{$board.Title}}< / title >
2018-01-28 15:01:59 -08:00
< script type = "text/javascript" src = "/javascript/jquery-3.3.1.min.js" > < / script >
2013-06-09 12:11:57 -07:00
< script type = "text/javascript" >
var styles = [{{range $ii, $style := $config.Styles_img}}{{if gt $ii 0}}, {{end}}"{{$style}}"{{end}}];
2013-07-29 06:43:57 -07:00
var webroot = "{{$config.SiteWebfolder}}";
var thread_type = "board";
2013-06-09 12:11:57 -07:00
< / script >
< script type = "text/javascript" src = "/javascript/gochan.js" > < / script >
< script type = "text/javascript" src = "/javascript/manage.js" > < / script >
< link rel = "stylesheet" href = "/css/global/img.css" / >
{{range $i, $style := $config.Styles_img}}
< link rel = "{{if isStyleNotDefault_img $style}}alternate {{end}}stylesheet" href = "/css/{{$style}}/img.css" / > {{end}}
2018-01-24 21:15:01 -08:00
< link rel = "shortcut icon" href = "/favicon.png" / >
2013-06-09 12:11:57 -07:00
< / head >
< body >
< div id = "topbar" >
2015-12-24 23:26:13 -08:00
{{range $i, $boardlink := $board_arr}}
< a href = "/{{$boardlink.Dir}}/" class = "topbar-item" > /{{$boardlink.Dir}}/< / a >
2014-02-06 01:50:59 -08:00
{{end}}
2013-06-09 12:11:57 -07:00
< / div >
< div id = "top-pane" >
< span id = "board-title" > {{$board.Title}}< / span > < br / >
< span id = "board-subtitle" > {{$board.Subtitle}}< / span >
< / div >
< hr / >
< div id = "right-sidelinks" >
< a href = "{{$config.SiteWebfolder}}{{$board.Dir}}/catalog.html" > Board catalog< / a > < br / >
< / div >
< div id = "postbox-area" >
< form name = "postform" action = "/post" method = "POST" enctype = "multipart/form-data" >
2014-02-06 01:50:59 -08:00
< input type = "hidden" name = "threadid" value = "0" / >
< input type = "hidden" name = "boardid" value = "{{$board.ID}}" / >
2017-08-21 17:05:25 -07:00
< input type = "text" name = "username" style = "display:none" / >
2013-06-09 12:11:57 -07:00
< table id = "postbox-static" >
2016-01-31 18:50:51 -08:00
< tr > < th class = "postblock" > Name< / th > < td > < input type = "text" id = "postname" name = "postname" maxlength = "50" size = "28" { { / * value = "Name" onFocus = "if(this.value=='Name') {this,value= ''}" onBlur = "if(this.value == '') {this.value = 'Name'}" * / } } / > < / td > < / tr >
< tr > < th class = "postblock" > Email< / th > < td > < input type = "text" id = "postemail" name = "postemail" maxlength = "50" size = "28" / > < / td > < / tr >
< tr > < th class = "postblock" > Subject< / th > < td > < input type = "text" name = "postsubject" maxlength = "100" size = "35" / > < input type = "submit" value = "Post" / > < / td > < / tr >
2016-01-23 01:58:18 -08:00
< tr > < th class = "postblock" > Message< / th > < td > < textarea rows = "4" cols = "48" name = "postmsg" id = "postmsg" > < / textarea > < / td > < / tr >
2015-12-24 23:26:13 -08:00
< tr > < th class = "postblock" > File< / th > < td > < input name = "imagefile" type = "file" > < input type = "checkbox" id = "spoiler" name = "spoiler" / > < label for = "spoiler" > Spoiler< / label > < / td > < / tr >
< tr > < th class = "postblock" > Password< / th > < td > < input type = "password" id = "postpassword" name = "postpassword" size = "14" / > (for post/file deletion)< / td > < / tr >
2013-06-09 12:11:57 -07:00
< / table >
< / form >
2015-12-28 13:24:34 -08:00
2013-06-09 12:11:57 -07:00
< / div >
< hr / >
< div id = "content" >
2013-07-26 17:49:38 -07:00
< form action = "/util" method = "POST" id = "main-form" >
2015-12-24 23:26:13 -08:00
{{range $t, $thread := $thread_arr}}
2014-02-06 01:50:59 -08:00
{{$op := $thread.OP}}
2014-05-03 18:12:07 -07:00
< div class = "thread" >
< div class = "op-post" id = "op{{$op.ID}}" >
{{if stringNeq $op.Filename ""}}
{{if stringNeq $op.Filename "deleted"}}
2018-01-28 15:01:59 -08:00
< div class = "file-info" > File: < a href = "src/{{$op.Filename}}" target = "_blank" > {{$op.Filename}}< / a > - ({{formatFilesize $op.Filesize}} , {{$op.ImageW}}x{{$op.ImageH}}, {{$op.FilenameOriginal}})< / div >
2018-02-03 14:42:05 -08:00
< a class = "upload-container" href = "{{$config.SiteWebfolder}}{{$board.Dir}}/src/{{$op.Filename}}" > < img src = "{{$config.SiteWebfolder}}{{$board.Dir}}/thumb/{{imageToThumbnailPath $op.Filename}}" width = "{{$op.ThumbW}}" height = "{{$op.ThumbH}}" class = "upload" / > < / a >
2014-05-03 18:12:07 -07:00
{{else}}
< div class = "file-deleted-box" style = "text-align:center;" > File removed< / div >
{{end}}
2013-07-29 02:18:53 -07:00
{{end}}
2016-01-23 01:58:18 -08:00
< input type = "checkbox" id = "check{{$op.ID}}" name = "check{{$op.ID}}" / > < label class = "post-info" for = "check{{$op.ID}}" > < span class = "subject" > {{$op.Subject}}< / span > < span class = "postername" > {{if stringNeq $op.Email ""}}< a href = "mailto:{{$op.Email}}" > {{end}}{{if stringNeq $op.Name ""}}{{$op.Name}}{{else}}{{if stringEq $op.Tripcode ""}}{{$board.Anonymous}}{{end}}{{end}}{{if stringNeq $op.Email ""}}< / a > {{end}}< / span > {{if stringNeq $op.Tripcode ""}}< span class = "tripcode" > !{{$op.Tripcode}}< / span > {{end}} {{formatTimestamp $op.Timestamp}} < / label > < a href = "/{{$board.Dir}}/res/{{$op.ID}}.html#{{$op.ID}}" > No.< / a > < a href = "javascript:quote({{$op.ID}})" class = "backlink-click" > {{$op.ID}}< / a > < span class = "post-links" > < span class = "thread-ddown" > [< a href = "javascript:void(0)" > ▼ < / a > ]< / span > < span > [< a href = "/{{$board.Dir}}/res/{{$op.ID}}.html" > View< / a > ]< / span > < / span > < br / >
2016-03-11 16:36:19 -08:00
< div class = "post-text" > {{truncateMessage $op.MessageHTML 2222 18}}< / div >
{{if gt $thread.NumReplies 3}}
< b > {{subtract $thread.NumReplies 3}} post{{if gt $thread.NumReplies 4}}s{{end}} omitted< / b >
{{end}}
2014-02-06 01:50:59 -08:00
< / div >
2014-05-03 18:12:07 -07:00
{{range $reply_num,$reply := $thread.BoardReplies}}
2018-02-03 12:43:12 -08:00
< div class = "reply-container" id = "replycontainer{{$reply.ID}}" >
< a class = "anchor" id = "{{$reply.ID}}" > < / a >
< div class = "reply" id = "reply{{$reply.ID}}" >
< input type = "checkbox" id = "check{{$reply.ID}}" name = "check{{$reply.ID}}" / > < label class = "post-info" for = "check{{$reply.ID}}" > < span class = "subject" > {{$reply.Subject}}< / span > < span class = "postername" > {{if stringNeq $reply.Email ""}}< a href = "mailto:{{$reply.Email}}" > {{end}}{{if stringNeq $reply.Name ""}}{{$reply.Name}}{{else}}{{if stringEq $reply.Tripcode ""}}{{$board.Anonymous}}{{end}}{{end}}{{if stringNeq $reply.Email ""}}< / a > {{end}}< / span > {{if stringNeq $reply.Tripcode ""}}< span class = "tripcode" > !{{$reply.Tripcode}}< / span > {{end}} {{formatTimestamp $reply.Timestamp}} < / label > < a href = "/{{$board.Dir}}/res/{{$op.ID}}.html#{{$reply.ID}}" > No.< / a > < a href = "javascript:quote({{$reply.ID}})" class = "backlink-click" > {{$reply.ID}}< / a > < span class = "post-links" > < span class = "thread-ddown" > [< a href = "javascript:void(0)" > ▼ < / a > ]< / span > < / span > < br / >
{{if stringNeq $reply.Filename ""}}< span class = "file-info" > File: < a href = "src/{{$reply.Filename}}" target = "_blank" > {{$reply.Filename}}< / a > - ({{formatFilesize $reply.Filesize}} , {{$reply.ImageW}}x{{$reply.ImageH}}, {{$reply.FilenameOriginal}})< / span > < br / >
2018-02-03 14:42:05 -08:00
< a class = "upload-container" href = "{{$config.SiteWebfolder}}{{$board.Dir}}/src/{{$reply.Filename}}" > < img src = "{{$config.SiteWebfolder}}{{$board.Dir}}/thumb/{{imageToThumbnailPath $reply.Filename}}" width = "{{$reply.ThumbW}}" height = "{{$reply.ThumbH}}" class = "upload" / > < / a > {{end}}
2018-02-03 12:43:12 -08:00
< div class = "post-text" > {{$reply.MessageHTML}}< / div >
2014-05-03 18:12:07 -07:00
< / div >
2018-02-03 12:43:12 -08:00
< / div >
2015-12-28 13:24:34 -08:00
2014-05-03 18:12:07 -07:00
{{end}}
< / div >
2013-07-29 02:18:53 -07:00
< hr / >
2013-07-28 11:54:27 -07:00
{{end}}
< div id = "right-bottom-content" >
< div id = "report-delbox" >
2013-07-29 06:43:57 -07:00
< input type = "hidden" name = "board" value = "{{$board.Dir}}" / >
< 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 / >
Reason: < input type = "text" size = "10" name = "reason" id = "reason" / > < input type = "submit" value = "Report" / >
2013-07-28 11:54:27 -07:00
< / div >
2013-06-09 12:11:57 -07:00
< / div >
2013-07-28 11:54:27 -07:00
< / form >
2015-12-24 23:26:13 -08:00
< div id = "left-bottom-content" >
< table id = "pages" >
< tr > < td > {{if gt $board.CurrentPage 1}}
< form method = "GET" action = "{{$config.SiteWebfolder}}{{$board.Dir}}/{{subtract $board.CurrentPage 1}}.html" >
< input type = "submit" value = "Previous" / >
< / form >
2015-12-28 13:24:34 -08:00
{{else if intEq $board.CurrentPage 1}}
< form method = "GET" action = "{{$config.SiteWebfolder}}{{$board.Dir}}/" >
< input type = "submit" value = "Previous" / >
< / form >
2015-12-24 23:26:13 -08:00
{{else}}Previous{{end}}< / td >
2015-12-28 13:24:34 -08:00
2015-12-24 23:26:13 -08:00
< td > [< a href = "{{$config.SiteWebfolder}}{{$board.Dir}}/" > Index< / a > ]{{range $i,$_ := makeLoop $board.NumPages}} [{{if eq $i $board.CurrentPage}}< b > {{end}}< a href = "{{$config.SiteWebfolder}}{{$board.Dir}}/{{add $i 1}}.html" > {{add $i 1}}< / a > {{if eq $i $board.CurrentPage}}< / b > {{end}}]{{end}}< / td >
< td > {{if lt $board.CurrentPage $board.NumPages}}
< form method = "GET" action = "{{$config.SiteWebfolder}}{{$board.Dir}}/{{add $board.CurrentPage 1}}.html" >
< input type = "submit" value = "Next" / >
< / form >
{{else}}Next{{end}}< / td > < / tr >
< / table >
< span id = "boardmenu-bottom" >
[{{range $i, $boardlink := $board_arr}} {{if gt $i 0}}/{{end}} < a href = "/{{$boardlink.Dir}}/" > {{$boardlink.Dir}}< / a > {{end}}]
< / span >
< / div >
2013-06-09 12:11:57 -07:00
< / div >
< div id = "footer" >
< a href = "{{$config.SiteWebfolder}}" > Home< / a > | < a href = "{{$config.SiteWebfolder}}#boards" > Boards< / a > | < a href = "{{$config.SiteWebfolder}}#rules" > Rules< / a > | < a href = "{{$config.SiteWebfolder}}#faq" > FAQ< / a > < br / >
2015-12-24 23:26:13 -08:00
Powered by < a href = "http://github.com/eggbertx/gochan/" > Gochan {{$config.Version}}< / a > < br / >
2013-06-09 12:11:57 -07:00
< / div >
< / body >
2014-02-09 01:45:56 -08:00
< / html >