{{define "top"}} {{.Title}}
[{{range $i, $b := .Boards}}{{if $i}} / {{end}}{{$b.Dir}}{{end}}] [Home] {{if .User}}[{{.User.Name}}{{if .AnyStaff}} · Manage{{end}} ·
] {{else}}[Sign in]{{end}}
{{with .Notice}}
{{.}}
{{end}} {{end}} {{define "bottom"}} {{end}} {{define "banner"}}{{with .Board}}
/{{.Dir}}/ - {{.Title}}
{{with .Description}}
{{.}}
{{end}}
{{end}}{{end}} {{define "file"}}
{{if .FileDeleted}}File deleted. {{else}}{{$kind := kind .Ext}}
File: {{short (print .FileName .Ext)}} ({{if .Spoiler}}Spoiler {{if eq $kind "image"}}Image{{else if eq $kind "video"}}Video{{else}}File{{end}}, {{end}}{{size .FileSize}}, {{if eq $kind "pdf"}}PDF{{with .PageCount}}, {{.}} {{if eq . 1}}page{{else}}pages{{end}}{{end}}{{else}}{{.W}}x{{.H}}{{end}}{{if eq .Ext ".swf"}}, Flash{{end}}{{if and (or (eq $kind "video") (eq .Ext ".flv")) .DurationMS}}, {{clock .DurationMS}}{{end}}){{if .Replay}} · drawn in {{dur .DrawMS}} [Replay]{{if .Draw}} [Draw over]{{end}}{{end}}
{{if .Spoiler}}Spoiler Image{{else}}{{size .FileSize}}{{end}} {{end}}
{{end}} {{define "post"}}
{{if not .OP}}
>>
{{end}}
{{if and .OP .Ext}}{{template "file" .}}{{end}} {{if and (not .OP) .Ext}}{{template "file" .}}{{end}}
{{.Comment}}{{if .Cut}}
Comment too long. Click here to view the full text.
{{end}}{{if .Banned}}

(USER WAS BANNED FOR THIS POST){{end}}
{{end}}