From 9f84ab4ca922a72bea6e1c4d796bb139b7a111b6 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Wed, 20 Jan 2016 11:52:04 -0500 Subject: [PATCH] try fixing banners --- contrib/static/nntpchan.js | 2 +- contrib/static/site.css | 5 +++++ contrib/templates/default/board.mustache | 1 + contrib/templates/default/frontpage.mustache | 1 + contrib/templates/default/ukko.mustache | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 29b8a4f..f5f6373 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -21,6 +21,6 @@ function nntpchan_inject_banners(elem, prefix) { var banner = prefix + "static/banner_"+n+".jpg"; var e = document.createElement("img"); e.src = banner; - e.setAttribute("class", "nntpchan_banner"); + e.id = "nntpchan_banner"; elem.appendChild(e); } diff --git a/contrib/static/site.css b/contrib/static/site.css index 042673f..5569e5c 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -321,3 +321,8 @@ textarea#reply-text { hr { padding-bottom: 20px; } + + +#nntpchan_banner { + align: center; +} \ No newline at end of file diff --git a/contrib/templates/default/board.mustache b/contrib/templates/default/board.mustache index 0be0f7c..78f8b10 100644 --- a/contrib/templates/default/board.mustache +++ b/contrib/templates/default/board.mustache @@ -31,6 +31,7 @@
+ [banner]
{{#board.Threads}} diff --git a/contrib/templates/default/frontpage.mustache b/contrib/templates/default/frontpage.mustache index 39e1c92..5b14a02 100644 --- a/contrib/templates/default/frontpage.mustache +++ b/contrib/templates/default/frontpage.mustache @@ -31,6 +31,7 @@

We've Had {{totalposts}} Posts Since August 01 2015

+ [banner]
diff --git a/contrib/templates/default/ukko.mustache b/contrib/templates/default/ukko.mustache index 5f4ef67..12212e4 100644 --- a/contrib/templates/default/ukko.mustache +++ b/contrib/templates/default/ukko.mustache @@ -14,6 +14,7 @@
+ [banner]
{{#threads}}