Commit graph

34 commits

Author SHA1 Message Date
Vincent Ambo
ff697ff792 feat(templates): Add new MDL-themed search result view 2018-05-22 09:45:11 +02:00
Vincent Ambo
fb9ea437e9 feat(templates): Add new thread view with MDL design 2018-05-22 09:45:11 +02:00
Vincent Ambo
dbd207c452 feat(templates): Add new MDL-based post editing page 2018-05-22 09:45:11 +02:00
Vincent Ambo
eaf1c46ba8 feat(templates): Add new MDL based index page 2018-05-22 09:45:11 +02:00
Vincent Ambo
cda66c4cd3 feat(templates): Add syntax highlighting for code via highlight.js
Includes a static distribution of highlight.js for syntax
highlighting. A sane set of languages has been chosen.
2018-05-19 00:52:21 +02:00
Vincent Ambo
1427220f9d style(thread): Fix padding on thread view
Removing this padding lets the author column render evenly sized.
2018-04-16 20:17:15 +02:00
Vincent Ambo
37331d9107 fix(thread): Load Gravatar images at larger size
This makes them look nicer in 2x situations (e.g. retina displays) and
when a user zooms in.
2018-04-16 16:48:42 +02:00
TatriX
ee855d8b67 feat(templates): Add 'Last post by' to the list of threads 2018-04-16 16:26:24 +02:00
Vincent Ambo
9bc5bbff54 fix(templates): Fix alignment of columns in thread view
The author column is maybe slightly too large now, but that can be
sorted out later.
2018-04-16 13:33:47 +02:00
Vincent Ambo
9c2359c8c9 fix(templates): Fix double-escaping of thread titles 2018-04-16 11:03:15 +02:00
Vincent Ambo
a5f2677785 fix(templates): Add some pleasing spacing to thread layout 2018-04-16 02:56:55 +02:00
Vincent Ambo
72f6fa65fd fix(templates): Mark pre-escaped variables as 'safe' 2018-04-16 00:25:29 +02:00
Vincent Ambo
705097dab9 feat(handlers/render): Display edit form for user's own posts
Displays an edit form for posts that are owned by a user (which is
currently defined as "email addresses match").
2018-04-15 23:09:44 +02:00
Vincent Ambo
7a55786552 fix(templates/post): Correctly insert post body 2018-04-15 23:09:33 +02:00
Vincent Ambo
ec712cc4c0 refactor(templates/render): Add generic post editing template
Adds a generic template that can be used for submitting, responding to
and editing posts.
2018-04-15 21:13:20 +02:00
Vincent Ambo
ee4b690d22 refactor(templates): Restyle thread view using flex layout 2018-04-15 12:38:33 +02:00
Vincent Ambo
02a466a28b style(templates): Minor fixes to search & index layouts 2018-04-15 00:41:17 +02:00
Vincent Ambo
ba33efd772 refactor(handlers): Receive search terms via query parameters
There are several reasons for this, but one important one is that
people expect to be able to share search links.
2018-04-14 23:28:34 +02:00
Vincent Ambo
8057b8849e feat(templates): Add 'sticky' badge to sticky threads 2018-04-14 22:33:35 +02:00
Vincent Ambo
4132869277 feat: Implement search result view & enable search
Implements a very simple and currently kinda broken-looking search
result view.
2018-04-14 22:21:55 +02:00
Vincent Ambo
529da884da fix(templates): Fluidly scale all images 2018-04-14 18:12:24 +02:00
Vincent Ambo
324778c7e0 fix(templates): Set CSPs on templates 2018-04-14 17:59:52 +02:00
Vincent Ambo
c6995fcab3 feat(templates): Highlight stickied threads in index 2018-04-14 17:55:57 +02:00
Vincent Ambo
e7a54a5aff feat(handler): Perform basic input validation on new thread view 2018-04-12 01:07:25 +02:00
Vincent Ambo
918c2726b4 fix(templates/handlers): Fix post anchors
- ensure users are correctly linked to a post actor after replying
- ensure timestamps are clickable to get post IDs
2018-04-11 16:35:40 +02:00
Vincent Ambo
87237f5c28 feat(render): Implement Markdown thread rendering & Gravatar
Implements a new thread rendering pipeline which all posts and the
main thread body are first converted to a `RenderablePost` structure.

During the conversion to this structure, the post body is rendered as
Markdown and the author's email address is converted into the format
required by Gravatar.
2018-04-11 13:25:12 +02:00
Vincent Ambo
97d77ffd07 fix(templates): Fix author name & avatar display 2018-04-09 23:48:31 +02:00
Vincent Ambo
103a59485f feat(handlers/templates): Add "New Thread" handler and template 2018-04-09 23:37:41 +02:00
Vincent Ambo
fb7df7a346 feat(templates): Slightly less barebones index & thread templates 2018-04-09 23:37:21 +02:00
Vincent Ambo
e761b2d295 feat(templates): Display author information in templates 2018-04-08 22:38:06 +02:00
Vincent Ambo
ef5f7af89c feat(templates): Add shitty little response form in thread view 2018-04-08 20:20:17 +02:00
Vincent Ambo
55b28f8136 feat(templates): Add a shitty thread submission form 2018-04-08 20:01:41 +02:00
Vincent Ambo
6e56f8e729 feat(main/templates): Add barebones single-thread view 2018-04-08 18:02:01 +02:00
Vincent Ambo
3db069c60d feat(main): Add support for Tera templates
Sets up the structure required to carry Tera templates in the
actix-web state.

The (still very barebones) index renderer has been updated to render a
Tera template.
2018-04-08 17:30:03 +02:00