Commit graph

64 commits

Author SHA1 Message Date
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
57cf55fecc Fix RSS feed icon
Closes #289
2018-10-31 18:17:13 +01:00
Bat
d8ca1d70b7 Fix CSRF issues
GET routes are not protected against CSRF. This commit changes the needed URLs to
POST and replace simple links with forms.

Thanks @fdb-hiroshima for noticing it!
2018-09-19 18:13:07 +01:00
Bat
10da8f31b6 Hide articles on public pages
Only show them in the dashboard
2018-09-10 20:06:00 +01:00
Bat
fcdd3d4c1a Don't compress avatars
Fixes #210
2018-09-09 21:41:55 +01:00
Bat
de3707983a Account deletion
Fixes #182
2018-09-09 20:49:24 +01:00
Bat
775162559e Improve user page on small screens
Center avatar's alt text, since the only fix to display them on a single line would
break valid avatars
2018-09-08 09:55:59 +01:00
Bat
99f04893bb Add tabs to the user profile 2018-09-05 16:41:31 +01:00
Bat
ac631627ab Make it possible to disable registrations
Fix #41
2018-09-03 17:05:45 +01:00
Bat
431bc41cb5 Improve user header 2018-09-03 15:03:25 +01:00
Bat
3013eec579 Redesign menu items 2018-09-03 14:59:02 +01:00
Bat
95ba99a6be Add a link to the media gallery 2018-09-03 12:24:34 +01:00
Bat
aa5fa11218 Add support for avatars, and fetch remote ones 2018-09-03 12:17:59 +01:00
Dominik Pataky
1fc89e8aeb Merge branch 'master' of https://github.com/Plume-org/Plume into feature/reshare_to_boost 2018-09-03 10:41:37 +02:00
Bat
52860efa85 Add a link for Atom feeds 2018-09-01 21:16:38 +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
ddcb49ce28 Fix #141 2018-08-18 12:49:06 +02:00
Bat
74ec59e77c Add some configuration options for instance admins 2018-07-27 19:05:36 +02: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
7af1faf206 Make the "Open on remote instance" button open a new tab 2018-07-26 18:27:02 +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
4e07fdbd05 Paginate followers too 2018-07-25 15:50:29 +02:00
Bat
3764e295b8 Fix the link of the follow/unfollow button so that it is always working, even without a trailing slash 2018-07-20 17:59:16 +02:00
Bat
b0e75f4d63 Fix the behavior of the follow button
There was a bug in Tera and in the User::is_following function.

Fix #146
2018-07-20 17:51:32 +02:00
Bat
e581ef7d09 Better style for <small> tags 2018-07-19 12:00:34 +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
Bat
a8b47de28b Explicitely escape user data in translations to avoid XSS 2018-06-26 17:58:11 +02:00
Bat
a7b246b726 Change .tera to .html.tera to enable auto-escaping 2018-06-26 17:40:25 +02:00
Didier Link
ae759114aa temporarly use an absolute link in users detail header template, linked with bug #65 2018-06-22 01:17:22 +02:00
Didier Link
9abb5887b1 use user.username for the edit link, not the display name 2018-06-22 00:27:18 +02:00
Didier Link
3089905958 correct a link template to edit user account 2018-06-21 13:33:26 +02:00
Matthieu
117904b69d New design improvements
* Max-width to limit number of characters per line
* Changed background colors (page, cards, buttons)
* Reduced header size
2018-06-17 22:07:01 +02:00
Matthieu
a9bdf4d9a9 Merge branch 'master' of https://github.com/Plume-org/Plume 2018-06-17 20:14:58 +02:00
Bat
0b9515645c De-duplicate some parts of the users templates 2018-06-17 18:48:22 +01:00
Bat
3207aa0e22 Make the UI translatable 2018-06-17 16:26:15 +01:00
Bat
25ec318f3f Inject ngettext into Tera templates
Fix .po updating (without the -U option, the result was written to stdout, not the .po file)
2018-06-17 11:16:20 +01:00
Bat
a4a8446d45 Make the follow button a bit smarter 2018-06-13 19:06:14 +01:00
Bat
7b61da9c7f Add a button to follow people 2018-06-13 18:52:26 +01:00
Bat
1c287c6dfe View remote profiles locally
Add a link to the profile on the real instance
2018-06-13 18:48:37 +01:00
Bat
4185ba230e Add a link to user profile in comments
And move back {% if %} inside of {% block %}, so they get interpreted.
2018-06-12 21:14:49 +01:00
Stephen Burgess
438778db39 fix(Style): Adjust code style for consistency 2018-06-12 12:05:33 -05:00
Stephen Burgess
d32c7e4b66 fix(User/Details): Display name 2018-06-12 07:45:53 -05:00
Stephen Burgess
23bb405c92 fix(User/Details): Use user variable 2018-06-12 07:42:34 -05:00
Stephen Burgess
df0fcb886d feat(UI): Fallback to username where ever display name is shown 2018-06-12 07:17:02 -05:00
Matthieu
a033a9d74e Merge branch 'master' of https://github.com/Plume-org/Plume 2018-06-12 13:57:30 +02:00
Trinity Pointard
d8f32afeb0 allow html on user.summary 2018-06-11 16:05:18 +02:00
Trinity Pointard
e7cadbf764 fix double-escaping on login page and disallow html on summary 2018-06-11 11:19:44 +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