Commit Graph

77 Commits

Author SHA1 Message Date
Baptiste Gelez b73fbd3768
License federation (#343)
* Federate license

* Make it possible to use no license
2018-12-09 18:43:34 +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 a64c4912cf
Add support for CW in comments (#308)
All the backend/federation code was already, I just added the UI 🤷‍♀️ 

Fixes #253
2018-11-07 15:57:31 +01:00
Baptiste Gelez 67077267cf Add OpenGraph metadata 2018-10-31 16:14:26 +01:00
Baptiste Gelez 25b7399e7f Only list images for possible covers 2018-10-31 15:07:40 +01:00
Baptiste Gelez 464832bb31 Avoid template errors when form.cover is not defined 2018-10-31 15:07:40 +01:00
Baptiste Gelez 1a49569bf2 Better style for <select> 2018-10-31 15:07:40 +01:00
Baptiste Gelez 4a2f5aeeeb Display article covers 2018-10-31 15:07:40 +01:00
Baptiste Gelez 485aac2e20 Add an interface to select an article illustration 2018-10-31 15:07:40 +01:00
Baptiste Gelez 2e072affb5
Fix editor auto-expansion (#293) 2018-10-30 18:16:24 +01:00
Trinity Pointard 9a8758d7fc Hide hashtags from tag list 2018-10-20 23:45:29 +02: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 8879935925 Add the possibility to save an article as draft 2018-09-10 19:38:19 +01:00
Bat fcdd3d4c1a Don't compress avatars
Fixes #210
2018-09-09 21:41:55 +01:00
Bat 3918bd4501 Edit posts 2018-09-07 18:51:53 +01:00
Bat dd9c4a6a73 Add a page to list articles by tag 2018-09-06 13:06:04 +01:00
Bat 5b3eca63e0 Make it possible to tag articles and display them 2018-09-05 21:18:27 +01:00
Madeorsk a30b99f93e Merge branch 'master' of https://github.com/Plume-org/Plume into icons 2018-09-04 21:55:44 +02:00
Madeorsk a3a25eec6c Icons update: removed FontAwesome, added Feather icons.
- FontAwesome icons.
+ Feather font.
+ Feather svg sprites.
+ Icons for Login / Register.
* Improved mobile menu.
2018-09-04 18:09:31 +02:00
Bat bba9a56329 Add author biography at the bottom of the post 2018-09-04 14:55:15 +01:00
Bat dbdc9f317e Show like/boost counters even when not logged in 2018-09-04 13:46:08 +01:00
Bat 94a386ea2c Add subtitles to articles
Fix #152
2018-09-04 12:26:13 +01:00
Atul Bhosale 0e901c7f59 Confirm before deleting an article 2018-09-03 20:38:34 +05:30
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
Bat cea548b821 Add a way to delete articles
Fixes #116
2018-09-01 16:28:47 +01:00
Kevin "Ilphrin" Pellet ce289b79fa 151 - Make the editor bigger and autosize it 2018-08-30 22:47:25 +02: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 0926a1d3b5 Tell that we support Markdown
Fixes #122
2018-07-27 20:54:34 +02:00
Bat b32015fa7d Show a message telling you that there are no comments
Fix #142
2018-07-27 20:34:23 +02:00
Bat fb2f4e9bcd Take in account instance's default license
Fix #145
2018-07-27 20:31:47 +02:00
Bat b42030e831 Try to use only "absolute" links to avoid trailing-slash bugs 2018-07-26 19:00:23 +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 44172b67d5 Add padding for responses in comments, to let threads appear
Fixes #144
2018-07-25 18:18:41 +02:00
Bat e581ef7d09 Better style for <small> tags 2018-07-19 12:00:34 +02:00
Bat 8ad0abd921 Mark optional fields as optionals
Fix #121
2018-07-19 11:32:20 +02:00
Bat 782955e2c4 Hide social button when not connected
Fixes #143
2018-07-18 23:37:05 +02:00
Bat 62007d17ee Fix a visual bug when a post was reshared 2018-07-18 15:35:01 +02:00
Bat eef9e6b7ea Better style for form errors 2018-07-18 15:34:18 +02:00
Bat e22bd7a588 Fix some issues with new form style 2018-07-18 14:14:57 +02:00
Bat 67dd577a27 Make like and share button HTML forms
Fixes #88
2018-07-11 21:27:47 +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 1a2cf3b14f What if I use the correct name for the this field?
Fix #81
2018-06-27 20:43:09 +02:00
Bat 68a041711c We can't mix GET and POST (in the comment form)
in_response_to was always null
2018-06-27 00:19:18 +02:00
Bat a8b47de28b Explicitely escape user data in translations to avoid XSS 2018-06-26 17:58:11 +02:00
Matthieu 11e66472f9 Improved Likes / Reshares section 2018-06-25 14:10:24 +02:00
Bat 4c211b4308 Remove the routes and the template for the comment form 2018-06-21 15:00:25 +01:00