Commit Graph

18 Commits

Author SHA1 Message Date
Baptiste Gelez 7eef4643c8
Update rocket_i18n and add gettext_macros (#431)
Internationalization now uses proc-macros that generate the .pot file
automatically.
2019-02-02 15:23:50 +01:00
Baptiste Gelez 80a4dae8bd
Avoid panics (#392)
- Use `Result` as much as possible
- Display errors instead of panicking

TODO (maybe in another PR? this one is already quite big):
- Find a way to merge Ructe/ErrorPage types, so that we can have routes returning `Result<X, ErrorPage>` instead of panicking when we have an `Error`
- Display more details about the error, to make it easier to debug

(sorry, this isn't going to be fun to review, the diff is huge, but it is always the same changes)
2018-12-29 09:36:07 +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
Bat c1d8cf6943 Update notification icons to use Feather 2018-09-05 16:56:23 +01:00
Dominik Pataky 001eb99091 Rename 'reshare' to 'boost' in templates and PO
For now it might be enough to only reword 'reshare' to 'boost' in the
frontend. The code can continue to use 'reshare'.

Includes the most recent German translation.

Fixes #74
2018-08-19 00:52:28 +02:00
Bat b1c1ba151d Fix #173 2018-08-18 12:55:34 +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 65e0d72a73 Display date for notifications 2018-07-26 16:14:01 +02:00
Bat 7a6c01fec5 Add icons to notifications
And some space between each of them

Fix #139
2018-07-26 16:09:36 +02:00
Bat c87d490664 Refactor notifications 2018-07-26 15:46:10 +02:00
Bat 4b0aba62f3 Add pagination for notifications
And correctly close an <a> tag
2018-07-25 15:33:54 +02:00
Bat ae4bcabc53 Make notifications translatable 2018-06-17 21:19:27 +01:00
Bat 7faf93f44a Fix a few issues with internationalization 2018-06-17 20:54:59 +01:00
Bat 3207aa0e22 Make the UI translatable 2018-06-17 16:26:15 +01: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
Trinity Pointard a8aeb40b95 add trailing slashes to links where they were missing
Signed-off-by: Trinity Pointard <trinity.pointard@insa-rennes.fr>
2018-05-22 17:35:16 +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 b91f567777 Display notifications 2018-05-13 14:35:55 +01:00