diff --git a/templates/question.html b/templates/question.html index a65b5c8..8c1ac96 100644 --- a/templates/question.html +++ b/templates/question.html @@ -1,84 +1,73 @@ - - {{ .question.Title }} | AnonymousOverflow - - - - - - {{ template "sharedHead.html" }} - - - + + {{ .question.Title }} | AnonymousOverflow + + + + + + {{ template "sharedHead.html" }} + - - - + + + + + + - -
- - - - {{ template "themeSwitcher.html" . }} + + +
+ + + + {{ template "themeSwitcher.html" . }} +
+
+
+

{{ .question.Title }}

+

+ Asked {{ .question.Timestamp }} by + {{ .question.AuthorName + }}. +

-
-
-

{{ .question.Title }}

-

- Asked {{ .question.Timestamp }} by - {{ .question.AuthorName }}. -

-
-
{{ .question.Body }}
-
- {{ range .question.Tags }} -
{{ . }}
- {{ end }} -
- {{ if .question.Comments }} {{ template "comments.html" - .question }} {{end}} +
{{ .question.Body }}
+
+ {{ range .question.Tags }} +
{{ . }}
+ {{ end }}
-
-
-

Answers

-
-
- - -
-
+ {{ if .question.Comments }} {{ template "comments.html" + .question }} {{end}} +
+
+
+

Answers

+
+
+ + +
- {{ range $answer := .answers }} -
-
+
+ {{ range $answer := .answers }} +
+

{{ if $answer.IsAccepted }} Accepted - {{ end }} {{$answer.Upvotes}} Votes @@ -89,21 +78,17 @@

- {{ $answer.Body }} -
-
- Answered {{ $answer.Timestamp }} by - {{ $answer.AuthorName }} -
+ {{ $answer.Body }} +
+
+ Answered {{ $answer.Timestamp }} by + {{ $answer.AuthorName }}
- {{ if $answer.Comments }} {{ template "comments.html" $answer }} - {{end}}
- {{ end }} - - + {{ if $answer.Comments }} {{ template "comments.html" $answer }} + {{end}} +
+ {{ end }} + + + \ No newline at end of file