Commit Graph

37 Commits

Author SHA1 Message Date
Baptiste Gelez 38302203f4
Count items in database as much as possible (#344)
* Count items in database as much as possible

* Fix the tests

* Remove two useless queries

* Run pragma directive before each sqlite connection

* Pragma for tests too

* Remove debug messages
2018-12-14 23:16:18 +01:00
Baptiste Gelez b0089e59b7
Remove useless pagination routes (#351)
Rocket 0.4 let us have routes with optional query parameter
2018-12-13 22:20:19 +01:00
fdb-hiroshima e9f2f769be Add microformat tags (#341)
Close #229 
Adding `<div>` might have broken the layout in some places. I've tried to fix it, tell me if I missed it somewhere
2018-12-08 21:52:46 +01:00
Trinity Pointard b4e4b497ee Works on template
Use uri! to generate links instead of hardcoded urls
Fix #110
Fix invalid links needing to be POST forms
Translate login message for boost and like directly from template
Put js for search in its own file
2018-12-07 12:10:03 +01:00
Baptiste Gelez 70af57c6e1
Use Ructe (#327)
All the template are now compiled at compile-time with the `ructe` crate.

I preferred to use it instead of askama because it allows more complex Rust expressions, where askama only supports a small subset of expressions and doesn't allow them everywhere (for instance, `{{ macro!() | filter }}` would result in a parsing error).

The diff is quite huge, but there is normally no changes in functionality.

Fixes #161 and unblocks #110 and #273
2018-12-06 18:54:16 +01:00
Baptiste Gelez f0b911a328 Fix RSS feed link on blog pages 2018-11-06 10:41:17 +01:00
Baptiste Gelez 57cf55fecc Fix RSS feed icon
Closes #289
2018-10-31 18:17:13 +01:00
Trinity Pointard eca458b0e5 Add support for blog deletion
fix #181
2018-10-20 15:03:59 +02:00
Atul Bhosale 3dce53d899
Fix broken link on blog page 2018-09-24 23:46:32 +05:30
Bat 133356191a Fix link of the Atom feed for blogs
Fixes #192
2018-09-03 21:06:57 +01:00
Bat 52860efa85 Add a link for Atom feeds 2018-09-01 21:16:38 +01:00
Bat b42030e831 Try to use only "absolute" links to avoid trailing-slash bugs 2018-07-26 19:00:23 +02:00
Bat 84974897ed Display FQN on user profiles
Fix #130
2018-07-26 18:36:38 +02:00
Bat 5f1de3f9ce Fix #128 2018-07-26 18:23:08 +02:00
Bat 5980c7b299 Simplify the logic to fallback to the FQN when no display name is available 2018-07-26 16:36:19 +02:00
Bat 04dac6f87f Add pagination links 2018-07-25 14:29:34 +02:00
Bat 5549e4d0e5 Merge branch 'master' of github.com:Plume-org/Plume 2018-07-24 14:32:11 +02:00
Kevin "Ilphrin" Pellet cd24b0f057 Show the total number of article on a blog
fixes #150
2018-07-21 16:58:30 +02:00
Bat 67eb41add1 Add pagination to the blog page
No UI to control it yet
2018-07-20 18:42:35 +02:00
Bat e581ef7d09 Better style for <small> tags 2018-07-19 12:00:34 +02:00
Bat ce256d6e39 List authors of a blog
Update french translation accordingly

Fixes #129
2018-07-18 23:08:49 +02:00
Bat 3775d3a9c9 HTML validation + Actually associate messages to errors + Fix inverted behavior on new blog and post form 2018-07-07 22:51:48 +02:00
Bat 5f3afe900f Display errors on invalid forms
It will probably need a bit of styling…
2018-07-06 19:29:36 +02:00
Madeorsk faade5ff25
Merge branch 'master' into master 2018-06-17 22:22:34 +02:00
Bat 7faf93f44a Fix a few issues with internationalization 2018-06-17 20:54:59 +01:00
Matthieu a9bdf4d9a9 Merge branch 'master' of https://github.com/Plume-org/Plume 2018-06-17 20:14:58 +02:00
Bat 3207aa0e22 Make the UI translatable 2018-06-17 16:26:15 +01:00
Matthieu a033a9d74e Merge branch 'master' of https://github.com/Plume-org/Plume 2018-06-12 13:57:30 +02:00
Trinity Pointard daf4de07be rename templates from .tera to .html.tera to enable auto-escaping of html 2018-06-11 11:19:39 +02:00
Bat 7fd152e270 Add a button to write a new article 2018-06-10 19:16:25 +01:00
Madeorsk 12d85c6ec5 New design
+ New design!
+ Added link for author name in comments.
+ Added author full name in comments.
* Fixed label / input relation linking.
2018-05-19 16:29:42 +02:00
Bat 1870f52332 Make the design less aggresive
- Softer violet
- Add borders to delimit cards
- Bolder titles
- Bigger inputs
2018-05-13 21:33:21 +01:00
Bat 91b19bccb5 Add a link to author's profile on article card
Use a macro to render those cards too
2018-05-13 18:19:23 +01:00
Bat 6de9d5b82a Articles listings on blogs and users pages 2018-05-12 14:31:09 +01:00
Bat 292f4d6b27 Add actual templates for everything 2018-05-09 20:09:52 +01:00
Bat ae60d5961c Add a base template 2018-05-09 18:53:12 +01:00
Bat 9130f4d848 Basic blog creation 2018-04-23 11:54:37 +01:00