From 59875e772eb1343e319ff7cfd96cf0f9f1937507 Mon Sep 17 00:00:00 2001
From: Roan Horning
Date: Fri, 24 Feb 2023 20:42:01 -0500
Subject: [PATCH] Implement comments_viewer page
---
public_html/css/hpr.css | 6 +++
site.cfg | 4 ++
templates/content-comments_viewer.tpl.html | 43 ++++++++++++++++++++++
3 files changed, 53 insertions(+)
create mode 100644 templates/content-comments_viewer.tpl.html
diff --git a/public_html/css/hpr.css b/public_html/css/hpr.css
index ebc85aa..e51cf87 100644
--- a/public_html/css/hpr.css
+++ b/public_html/css/hpr.css
@@ -242,6 +242,12 @@ table.hosts tr:nth-child(even) { background-color:#cccccc; }
table.hosts tr:nth-child(odd) { background-color:white; }
table.hosts tr td img { vertical-align:middle }
+pre.comment {
+ white-space: pre-wrap;
+ padding: 2px;
+ line-height: 1.2rem;
+}
+
@media only screen and (max-width: 680px) {
#container {width: 95%;}
img#hprlogo {float: left; max-width: 85px; padding: .35em;}
diff --git a/site.cfg b/site.cfg
index 807f3e5..fc132e9 100644
--- a/site.cfg
+++ b/site.cfg
@@ -146,6 +146,10 @@ media_baseurl: https://www.hackerpublicradio.org/eps/
navigation: navigation-about.tpl.html
content: content-mumble-howto.tpl.html
+[comments_viewer]
+navigation: navigation-about.tpl.html
+content: content-comments_viewer.tpl.html
+
[hpr_ogg]
root_template: rss.tpl.xml
content: rss-hpr.tpl.xml
diff --git a/templates/content-comments_viewer.tpl.html b/templates/content-comments_viewer.tpl.html
new file mode 100644
index 0000000..a715c7b
--- /dev/null
+++ b/templates/content-comments_viewer.tpl.html
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+Comment Viewer
+Because of the spammers we have had to turn on comment moderation. Sorry about the delay this will cause.
+Subscribe to the comment feed.
+
+
+
+
+
+
+
+
+
+