about summary refs log tree commit diff
path: root/src/render.rs
AgeCommit message (Collapse)AuthorFilesLines
2018-04-17 chore(license): Relicense under AGPL-3.0-or-laterVincent Ambo1-8/+10
Relicense the project from the standard GPL3 to the Affero version of the license, requiring source code disclosure for modifications made on instances of Converse that are serving users over the network.
2018-04-16 feat(templates): Add 'Last post by' to the list of threadsTatriX1-0/+2
2018-04-16 fix(render): Enable GFM's tagfilter extensionVincent Ambo1-2/+1
2018-04-15 feat(handlers/render): Display edit form for user's own postsVincent Ambo1-1/+23
Displays an edit form for posts that are owned by a user (which is currently defined as "email addresses match").
2018-04-15 refactor: Add a message!-macro to reduce message boilerplateVincent Ambo1-16/+4
2018-04-15 refactor(render): Pass serializable structs to Tera directlyVincent Ambo1-9/+3
No need to go the intermediate step via `Context::new()`
2018-04-15 refactor(templates/render): Add generic post editing templateVincent Ambo1-6/+43
Adds a generic template that can be used for submitting, responding to and editing posts.
2018-04-15 feat(handlers): Determine whether current user can edit a postVincent Ambo1-1/+10
2018-04-14 fix(render): Escape post bodiesVincent Ambo1-1/+2
... derp. Well, the CSP prevented script executions already.
2018-04-14 feat: Implement search result view & enable searchVincent Ambo1-0/+21
Implements a very simple and currently kinda broken-looking search result view.
2018-04-14 feat(templates): Highlight stickied threads in indexVincent Ambo1-0/+2
2018-04-14 feat(db): Add support for stickies in databaseVincent Ambo1-1/+1
Adds a 'sticky' column to threads and rewrites the thread index to take sticky markings into account when ordering threads. Stickies are not yet highlighted in any way in the forum overview.
2018-04-14 feat(db): Add view for ordering thread index by most recent postVincent Ambo1-2/+2
This implements the classic thread ordering expected by most forum users (i.e. the thread with the most recent post is at the top).
2018-04-14 feat: License project under GPLv3Vincent Ambo1-0/+16
2018-04-14 refactor(db): Store thread body in the posts tableVincent Ambo1-13/+4
This is a simplification over the previous approach. The OP of a thread is just a normal post like any other in this model, which allows some code simplifications (and future query convenience).
2018-04-12 feat(handler): Perform basic input validation on new thread viewVincent Ambo1-3/+15
2018-04-11 chore: Clean up unused importsVincent Ambo1-1/+0
2018-04-11 feat(render): Use a more human-readable format for datesVincent Ambo1-5/+15
2018-04-11 fix(render): Escape thread titles in indexVincent Ambo1-1/+19
2018-04-11 feat(render): Implement Markdown thread rendering & GravatarVincent Ambo1-8/+67
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 feat(render): Add rendering actorVincent Ambo1-0/+70
Adds a separate actor that handles page rendering, templating engine state and other related topics.