From 371d149a5b720915bce74f58887e94924e8b5815 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Thu, 25 Apr 2024 05:14:25 +0000 Subject: [PATCH 1/2] fix: remove alt from homepage logo, add "logo" alt to question header --- templates/home.html | 133 +++++++++++++++++----------------------- templates/question.html | 2 +- 2 files changed, 58 insertions(+), 77 deletions(-) diff --git a/templates/home.html b/templates/home.html index 036524b..057e062 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,81 +1,62 @@ - - AnonymousOverflow - Private frontend for StackOverflow - - - - - {{ template "sharedHead.html" }} - - -
-
- -

Anonymous­Overflow

-
-

Get programming help without compromising your privacy.

-

- AnonymousOverflow allows you to view StackOverflow threads - without the cluttered interface and exposing your IP address, - browsing habits and other browser fingerprint data to - StackOverflow. -

- {{ if .successMessage }} -
-

Success: {{ .successMessage }}

-
- {{ else}} {{ if .errorMessage }} -
-

Error: {{ .errorMessage }}

+ + + AnonymousOverflow - Private frontend for StackOverflow + + + + + {{ template "sharedHead.html" }} + + + +
+
+ +

Anonymous­Overflow

+
+

Get programming help without compromising your privacy.

+

+ AnonymousOverflow allows you to view StackOverflow threads + without the cluttered interface and exposing your IP address, + browsing habits and other browser fingerprint data to + StackOverflow. +

+ {{ if .successMessage }} +
+

Success: {{ .successMessage }}

+
+ {{ else}} {{ if .errorMessage }} +
+

Error: {{ .errorMessage }}

+
+ {{end}} {{ end }} +
+
+ +
- {{end}} {{ end }} - -
- - -
-
-
-
- - Toggle theme - -
- {{ template "themeSwitcher.html" .}} + +
+ - + {{ template "themeSwitcher.html" .}}
- - + +
+ + + \ No newline at end of file diff --git a/templates/question.html b/templates/question.html index f0bf96c..a65b5c8 100644 --- a/templates/question.html +++ b/templates/question.html @@ -26,7 +26,7 @@ {{ template "themeSwitcher.html" . }} From 72c2888541c172489a292e21c4ad4e3261c6fd5c Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Sun, 5 May 2024 15:22:24 -0400 Subject: [PATCH 2/2] fix: set logo alt on question.html to "AnonymousOverflow home" --- templates/question.html | 163 ++++++++++++++++++---------------------- 1 file changed, 74 insertions(+), 89 deletions(-) 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 @@

Answers

- {{ $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