Commit Graph

16 Commits

Author SHA1 Message Date
bd3ce18688 stats: Add board table links to stats page
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-09-09 23:45:40 -07:00
77b32e10d1 Add news update for stats page
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-09-09 23:33:40 -07:00
46d66edb4d stats: Update histogram on stats page to take up 100% of the width, add stats page to the base HTML nav
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-09-09 23:28:45 -07:00
cc9c5b5f43 stats: Add stats page
* add stats_table_data() function on the backend
* add stats HTML page and route

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-09-09 22:59:38 -07:00
b036a51cfb Add more obvious notifier that the post is an OP
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-13 22:00:58 -07:00
44e28c2e44 Update post view to show OPs with red bars on the left
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-13 21:48:38 -07:00
0f97d2c577 Update FAQ with .onion site
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-13 20:17:49 -07:00
14fbe89f8c Update initial news post update
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-13 19:28:06 -07:00
08e180dd65 Tweaking HTML some more
* Add some margin space around the prev/next links
* Increase prev/next link font size
* Add prev/next text without link when we're on the first/last page
* Add useful placeholder text to the "board" search

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-13 18:23:22 -07:00
4439e14b6b Add "pagination"
Items per page are just handled by hard offset instead of pages. That's
all we really need

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-06 00:17:45 -07:00
34429238e3 http: move CSS to its own static file
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 20:33:17 -07:00
d79899ea87 http: Add static file support
Static files are configured using a handful of config values. Static
files can be handled remotely or locally for prod or dev environments,
respectively.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 20:16:47 -07:00
d3e3d99b12 http: Remove reassuring message from news.html - we are NOT happy to have you here
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 18:48:34 -07:00
f0cc2dd1bd http: Add the HTTP_ROOT config option and a function that uses it
HTTP_ROOT is the server's root directory to serve from, in case your
domain uses something else.

This is also added to the HTML templates.

Also added a news.html template for any sitewide news.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 18:31:36 -07:00
b6d8346fef http: Update table colors in the templates to look more like 4chan
Also added a couple more small messages.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 17:45:14 -07:00
c5e7080663 http: Add base HTTP server implementation.
* Add HTTP server base implementation with some basic pages
* Add Jinja2 dependency
* Things are mostly working, except for static resources. Those will
  have to come next.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-07-31 18:04:53 -07:00