{{ template "base.html" . }} {{ define "content" }}
← Back to index {{ template "pagination.html" .Pagination }}
{{ range .Posts }}
{{/* TODO: Dynamically switch between bbcode and markdown */}}
{{ if .Author }}
{{ .Author.Username }} {{/* TODO: Text scale stuff? Seems unnecessary. */}}
{{ if .Author.IsStaff }}
{{ end }}
{{ if and .Author.Name (ne .Author.Name .Author.Username) }}
{{ .Author.Name }}
{{ end }}
{{/* TODO: Aggregate user data
{{ post.author.posts }} posts {% if post.author.public_projects.values|length > 0 %} / {{ post.author.public_projects.values|length }} project{%if post.author.public_projects.values|length > 1 %}s{% endif %} {% endif %}
*/}}
{{ if .Author.IsStaff }}
{{ end }}
{{ if .Author.Blurb }} {{ .Author.Blurb }} {{/* TODO: Linebreaks? */}} {{ else if .Author.Bio }} {{ .Author.Bio }} {{ end }}
{{ else }}
Deleted member
{{ end }}
#{{ .ID }} {{ if $.User }}
{{ if or (eq .Author.ID $.User.ID) $.User.IsStaff }}     {{ end }} {{ if or (not $.Thread.Locked) $.User.IsStaff }} {{ if $.Thread.Locked }} WARNING: locked thread - use power responsibly! {{ end }}   {{ end }}
{{ end }}
{{ $.Thread.Title }}
{{ timehtml (relativedate .PostDate) .PostDate }} {{ if .Editor }} Edited by {{ coalesce .Editor.Name .Editor.Username }} {{ if $.User }} {{ if and $.User.IsStaff .EditIP }}[{{ .EditIP }}]{{ end }} {{ end }} on {{ timehtml (absolutedate .EditDate) .EditDate }} {{ with .EditReason }} Reason: {{ . }} {{ end }} {{ end }} {{ if $.User }} {{ if $.User.IsStaff }} [{{ .IP }}] {{ end }} {{ end }}
{{ .Content }}
{{/* {% if post.author.signature|length %}

{{ post.author.signature|bbdecode|safe }}
{% endif %} */}}
{{ end }}
← Back to index {{ if .Thread.Locked }} Thread is locked. {{ else if .User }} ⤷ Reply to Thread {{ else }} Log in to reply {{ end }}
{{ template "pagination.html" .Pagination }}
{{ end }}