Commit graph

551 commits

Author SHA1 Message Date
Glandos
e7ab3c1a95 Implement rate limiting with Flask-Limiter
Fixes #1054
2022-12-10 18:22:41 +01:00
Glandos
24614b2c1d format doc 2022-10-22 23:02:27 +02:00
Glandos
d97123bf6b reformat 2022-10-22 23:02:27 +02:00
Glandos
dc40c8fc14 use a dict for project list
this avoid finding duplicates, and we only need id -> name

also, use a common function to avoid duplicate code

fix #1081
2022-10-22 23:02:27 +02:00
Glandos
cc18986b76 add test for multiple join 2022-10-22 23:02:27 +02:00
Sharan J
a352214033 Translated using Weblate (Telugu)
Currently translated at 28.3% (75 of 265 strings)

Added translation using Weblate (Telugu)

Co-authored-by: Sharan J <sharanjs1999@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/te/
Translation: I Hate Money/I Hate Money
2022-10-09 22:20:32 +02:00
Andrzej Ochodek
ac2c9ffb73 Translated using Weblate (Polish)
Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Andrzej Ochodek <andrzej.ochodek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
2022-09-30 22:30:10 +02:00
Dmytro Onopa
f63611212f Translated using Weblate (Ukrainian)
Currently translated at 24.1% (64 of 265 strings)

Co-authored-by: Dmytro Onopa <dmytro.onopa@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/uk/
Translation: I Hate Money/I Hate Money
2022-09-30 22:30:10 +02:00
Maite Guix
26b9262ce1 Translated using Weblate (Catalan)
Currently translated at 100.0% (265 of 265 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Maite Guix <maite.guix@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ca/
Translation: I Hate Money/I Hate Money
2022-09-12 22:52:58 +02:00
Maite Guix
39bf774941 Translated using Weblate (Catalan)
Currently translated at 100.0% (265 of 265 strings)

Translated using Weblate (Catalan)

Currently translated at 74.3% (197 of 265 strings)

Translated using Weblate (Catalan)

Currently translated at 69.8% (185 of 265 strings)

Added translation using Weblate (Catalan)

Co-authored-by: Maite Guix <maite.guix@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ca/
Translation: I Hate Money/I Hate Money
2022-09-09 23:09:14 +02:00
Glandos
f98b126e58 Captcha value should be case insensitive on both side (form and l10n values)
Fixes #1060
2022-09-09 22:44:27 +02:00
Glandos
8695b899db
Allow more elements with CSP (#1057)
Ultimately, we should get rid of inline style
For image in data: scheme, I think it's OK for now
Fixes #1055
2022-08-28 11:49:29 +02:00
Glandos
08defaea8f use double quotes so that value that contains single quote is not a syntax error 2022-08-28 11:34:38 +02:00
z.liu
fc0a73e8b2 Translated using Weblate (Chinese (Simplified))
Currently translated at 95.8% (254 of 265 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 95.4% (253 of 265 strings)

Co-authored-by: z.liu <zwliu07@live.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2022-07-21 22:40:10 +02:00
Glandos
78af70b2c1 Add url from request 2022-07-16 23:29:35 +02:00
Glandos
667b65b9cc
Surround email in case of error (#1044)
fix https://huntr.dev/bounties/441cc44c-6837-46ec-9b30-52455aa71a2f/
2022-07-16 23:26:51 +02:00
Matteo Piotto
e9b7426a98 Translated using Weblate (Italian)
Currently translated at 76.6% (203 of 265 strings)

Co-authored-by: Matteo Piotto <piotto@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money
2022-07-14 15:55:18 +02:00
Glandos
31fef4f4d6
Fix CSRF on logout (#1040)
fix for https://huntr.dev/bounties/a3045614-1125-4901-bb7a-9d51be4beeed/
2022-07-14 15:45:32 +02:00
Shafiq Azeez
c164a1fbd2 Translated using Weblate (Urdu)
Currently translated at 4.5% (12 of 265 strings)

Added translation using Weblate (Urdu)

Co-authored-by: Shafiq Azeez <fubukishirouk@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ur/
Translation: I Hate Money/I Hate Money
2022-07-10 16:16:06 +02:00
Glandos
3a73c26e6d fix flake8 2022-07-10 16:07:19 +02:00
Glandos
ff08df043a change error format to be compatible with py < 3.10 2022-07-10 16:07:19 +02:00
Glandos
9341dc292e fix #1037
Add a warning, so adapt the test to capture it
2022-07-10 16:07:19 +02:00
Glandos
7a55fb23fa add test to show the failure 2022-07-10 16:07:19 +02:00
Jonny Järnmark
b32abadd05 Translated using Weblate (Swedish)
Currently translated at 69.0% (183 of 265 strings)

Co-authored-by: Jonny Järnmark <jarnmark@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2022-06-26 16:19:02 +02:00
Wilfredo Gomez Martinez
3d8f91af35 Translated using Weblate (Spanish)
Currently translated at 36.9% (98 of 265 strings)

Co-authored-by: Wilfredo Gomez Martinez <wilfredo.gomezmartinez@wallawalla.edu>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2022-06-26 16:19:02 +02:00
МАН69К
b3a87ad1e8 Translated using Weblate (Russian)
Currently translated at 82.2% (218 of 265 strings)

Co-authored-by: МАН69К <weblate@mah69k.net>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2022-06-26 16:19:02 +02:00
G Pery
9c2c4bf453 Translated using Weblate (Hebrew)
Currently translated at 24.1% (64 of 265 strings)

Added translation using Weblate (Hebrew)

Co-authored-by: G Pery <gpery+weblate@proton.me>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/he/
Translation: I Hate Money/I Hate Money
2022-05-29 15:01:05 +02:00
Glandos
042b33aeb2 escape csv formulae
This is only needed for unsecure spreadsheet applications (hi Google Docs and MS Excel) that load formulae by default.

See https://owasp.org/www-community/attacks/CSV_Injection for some mitigation explanation. This is not complete, but it should be OK for now.
2022-05-14 16:16:12 +02:00
Glandos
9b4834ff55 remove unused imports 2022-05-14 16:09:14 +02:00
936ea0ea8e
Almet/qrcode (#1000)
Add a QRCode utility to join the project.
2022-05-11 11:20:15 +02:00
erwan-lacoudre
0d511e03d8
Add a Cancel Button when editing a bill (#1013)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-05-08 15:37:28 +02:00
Andrzej Ochodek
15a81be0c9 Translated using Weblate (Polish)
Currently translated at 98.4% (261 of 265 strings)

Co-authored-by: Andrzej Ochodek <andrzej.ochodek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
2022-04-30 08:33:04 +02:00
Hasidul Islam
ace8e9afdb Translated using Weblate (Bengali)
Currently translated at 10.9% (29 of 265 strings)

Added translation using Weblate (Bengali)

Co-authored-by: Hasidul Islam <ihasidul@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/bn/
Translation: I Hate Money/I Hate Money
2022-04-23 18:05:01 +02:00
Santiago José Gutiérrez Llanos
f086cb7aa4 Translated using Weblate (Indonesian)
Currently translated at 96.2% (255 of 265 strings)

Translated using Weblate (Spanish (Latin America))

Currently translated at 100.0% (265 of 265 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 93.9% (249 of 265 strings)

Co-authored-by: Santiago José Gutiérrez Llanos <gutierrezapata17@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es_419/
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2022-04-23 18:05:01 +02:00
Glandos
5f4f69bc6c
Convert MAIL_DEFAULT_SENDER to a string (#1007)
Fixes #1005
2022-04-07 21:15:48 +02:00
Baptiste Jonglez
0dede02133 Add missing __init__.py that may explain why CI fails 2022-04-03 00:28:08 +02:00
Glandos
eaf059fe91
Hide "each" amount when there's only one recipient (#1008)
Fixes #1002
2022-03-24 17:31:50 +01:00
Weblate (bot)
22ac13a2e3
Translated using Weblate (Portuguese (Brazil)) (#1004)
Currently translated at 82.6% (219 of 265 strings)

Co-authored-by: Vinícius A. L. Souza <me@viniciusals.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pt_BR/
Translation: I Hate Money/I Hate Money

Co-authored-by: Vinícius A. L. Souza <me@viniciusals.com>
2022-03-13 19:45:46 +01:00
Glandos
a71f154354 Purge project history on deletion 2022-03-05 17:12:59 +01:00
Allan Nordhøy
09e583b49e Translated using Weblate (Norwegian Bokmål)
Currently translated at 75.0% (199 of 265 strings)

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nb_NO/
Translation: I Hate Money/I Hate Money
2022-02-28 22:28:45 +01:00
Glandos
e355894cee
Check for too high values (#989)
* check for too high values

see https://github.com/python-babel/babel/issues/821

fix #957

* black & isort

* add API test
2022-02-02 10:09:49 +01:00
Glandos
1bea93f8a5 upgrade sqlalchemy-continuum
1.3.10 is needed to remove the patch
1.3.12 is needed for SQLAlchemy 1.4
2022-02-01 23:02:49 +01:00
Gianluca De Cola
a14c7c5aaf Add a tooltip to advertize the computation trick on bills. 2022-01-31 22:07:47 +01:00
Glandos
07e1eac0a9
Null amount validator was broken (#990) 2022-01-30 16:33:18 +01:00
Peter Maksymowsky
a5452ccee5
Display admin email in error message for password reminder (#965)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-01-30 15:33:54 +01:00
7c3ced06f8
Some small cleanups (#976)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-01-30 15:26:22 +01:00
Weblate (bot)
ed6676485a
Translations update from Hosted Weblate (#987)
Co-authored-by: yzqzss <yzqzss@yandex.com>
2022-01-25 22:34:00 +01:00
Glandos
1a90e4cdd8
Fix broken captcha validation when field is empty and we use WTForms 3 (#988) 2022-01-25 22:26:56 +01:00
Weblate (bot)
8fe7bbdf4c
Translated using Weblate (Polish) (#983)
Currently translated at 80.3% (213 of 265 strings)

Co-authored-by: Piotr <promantix@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money

Co-authored-by: Piotr <promantix@gmail.com>
2022-01-23 19:43:45 +01:00
Glandos
40ce32d9fa
Support WTForms 3 (#916)
* Support WTForms 3

* default value to None for WTForm backward compatibility

* switch back to empty string as default

WTForm backward compatibility needs that

* format
2022-01-23 19:43:32 +01:00
Glandos
023ec71536
[Performance] Get weight sum along with bills to scale (#949)
* get weight sum along with bills to scale

otherwise, we need to get the weight sum for each displayed bill.
Here, we are much more scalable

* add test

* format

* remove unused import

* oops, restore pagination to 100

* add comments

* format

* rename method to make it clearer

And also, make it static, since it doesn't rely on instance.

* improve comments and naming

* improve naming

* missing article
2022-01-22 00:13:07 +01:00
zorun
c8cbe43ee2
Display monthly statistics for the range of months where the project was active (#885)
* Change the way we import datetime

This makes it easier to use datetime.date later.

* Display monthly statistics for the range of months where the project was active

Currently, we display a hard-coded "one year" range of monthly statistics
starting from today.  This generally is not the intended behaviour: for
instance, on an archived project, the bills might all be older than one
year, so the table only displays months without any operation.

Instead, display all months between the first and last bills.  There might
be empty months in the middle, but that's intended, because we want all
months to be consecutive.

If there are no bills, simply display an empty table.

Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2022-01-18 14:32:43 +01:00
Baptiste Jonglez
0c8b8e9374 Remove old python 2 compatibility code 2022-01-14 19:45:02 +01:00
Salamandar
6519223b45
Fix : use url_for in showcase template. (#974) 2021-12-22 19:25:55 +01:00
Youe Graillot
747824a298
CSV bills import (cospend compatible) (#951)
* proper import form (fix messy errors)
* csv compatible import
* cospend compatible import
* localization (best effort)
* refactoring
* revert localization (best effort)
* import return 400 on error
* fix Person.query.get_by_ids calls
* Bill explicit init parameters
* fix tests
* refacto tests with self.get_project
* separate import tests
* fix tests
* csv import test case
* fix import csv parsing
* revert DestructiveActionProjectForm renaming
* fix csv import test
* fix error redirection on import
* fix lint
* import file input type hint
* various fixes from review

Co-authored-by: Youe Graillot <youe.graillot@gmail.com>
2021-12-22 00:00:34 +01:00
Glandos
8b6a2afc63
Check that language is in the supported list (#971) 2021-12-21 22:40:37 +01:00
Glandos
a0d13e4081
Top pagination and new bill button are sticky (#956) 2021-12-14 22:51:06 +01:00
Peter Maksymowsky
470c19fe4d
List supported currencies in API under api/currencies (#961)
* List supported currencies in API under api/currencies

* Added test for /currencies route
2021-12-13 23:25:25 +01:00
Glandos
b9fee9e886
Rework flash messages (#943) 2021-12-01 22:42:20 +01:00
Weblate (bot)
58d8a24047
Translations update from Hosted Weblate (#953)
* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Christian H <sunrisechain@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Co-authored-by: Christian H <sunrisechain@gmail.com>
2021-11-30 11:49:59 +01:00
Youe Graillot
db1379be34
Legal link fixes (#950)
* fix default legal link value in docker

* fix footer-right overflow
2021-11-28 18:45:45 +01:00
Weblate (bot)
d0a8668de6
Translations update from Hosted Weblate (#947)
* Translated using Weblate (French)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Alexis Metaireau <alexis@notmyidea.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (Italian)

Currently translated at 75.0% (199 of 265 strings)

Co-authored-by: Paolo Campetto <fbok61hw@anonaddy.me>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money

Co-authored-by: Alexis Metaireau <alexis@notmyidea.org>
Co-authored-by: Paolo Campetto <fbok61hw@anonaddy.me>
2021-11-26 09:02:53 +01:00
Glandos
521838ace4
small css cleanup by using bootstrap classes (#945) 2021-11-26 00:06:36 +01:00
Glandos
e929181128
Remove notification showing the id of the project after creation (#944) 2021-11-25 14:30:17 +01:00
Youe Graillot
acb2799575
Production ready docker (#919)
* /healthcheck endpoint usefull for monitoring, ci test also uses this
* customizable PORT with environment variable
* customizable PUID/PGID, reduce attack surface and allow better integration in rootless environments
* size optimization
* update to python 3.10
* add postgresql compatibility
* PUID/PGID default as root to not break current user environments
2021-11-25 08:23:23 +01:00
ef3944ccad
Send an email when the project is created via the API. (#938) 2021-11-25 00:49:17 +01:00
1698841f6d
Do not require a captcha when using the API (#931)
* Do not require a captcha when using the API

This was trickier than expected, due to some side effects : when the
captcha is set to `True` via configuration, it doesn't change the
behavior directly of the ProjectForm class, but does so only when the
project form is used in the `web.py` module.

So, when just using the API (and not using the web.py module, for
instance during tests — manual or functional), no problem was shown,
and everything was working properly.

But at soon as somebody sees the "/" endpoint, the captcha was
required, by both the API and the `web.py` module.

This fixes it by adding a way to bypass the captcha with a new
`bypass_captcha` property on the form.

Prior to this commit, things were done by activating or deactivating a
"captcha" property on the class on-the-fly, which caused side-effects.

This is now using subclasses, which makes the code simpler to
understand, and less prone to side-effects.

Thanks @zorun for the idea.
2021-11-25 00:44:21 +01:00
Nikos Epping
05ac991a55
Allow clicking buttons behind messages div (#929) 2021-11-24 21:56:14 +01:00
68552a6034
Allow connecting to upper-case project IDs. (#934)
Fix #933.
2021-11-23 19:09:50 +01:00
Weblate (bot)
bd9ebd1d60
Translated using Weblate (Indonesian) (#936)
Currently translated at 95.0% (252 of 265 strings)

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
2021-11-23 10:39:55 +01:00
2adc2bf0be
Check that project creation via the API doesn't required a captcha. (#926)
Fixes #922
2021-11-21 17:39:42 +01:00
beac10be0b
Always authentify projects using a lowercase ID. (#925)
Fixes #920
2021-11-21 17:13:26 +01:00
Glandos
9bffe72607 Upgrade jquery 2021-11-13 22:33:18 +01:00
Weblate (bot)
e1a8f8596a
Translated using Weblate (Turkish) (#913)
Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-11-08 23:26:46 +01:00
Glandos
95f589f00e Merge remote-tracking branch 'weblate/master' into fix_weblate 2021-11-06 14:38:17 +01:00
Glandos
c59aaadcde
sidebar_table_layout switches to flex column layout (#905)
* Fixes #896

sidebar_table_layout switches to flex column layout
remove all 'float' buttons, replace them with nice flexboxes.
bill_table needs a flex-basis because with a very small width, it has a 0 height. I don't really know why, but adding a flex-basis: auto shows it.

* ensure new bill is on top of pagination
2021-11-01 20:08:48 +01:00
2ff1ba4ed1 Fix wrongly commited conflicting files 2021-11-01 18:38:58 +01:00
0a5814fbd9
Translated using Weblate (French)
Currently translated at 100.0% (264 of 264 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
2021-11-01 18:26:02 +01:00
35a74100cb
Rename all strings to "participants", clean old and small weird stuff (#871)
* Rename all strings to "participants".
* Update the tests with the new strings
* Update tests
2021-11-01 18:25:57 +01:00
cdc98a6706
Make the "Add a new bill" button visible on small resolutions. Fixes #896 (#904)
The clearfix should be applied before the pagination blocks.
2021-11-01 17:52:51 +01:00
Weblate (bot)
67ae812d84
Translated using Weblate (French) (#898)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-10-30 18:09:06 +02:00
JocelynDelalande
18aebb618f
Avoid showcase-guy to point his finger at nothing (#901)
That occured on some screen sizes.
2021-10-30 17:36:42 +02:00
JocelynDelalande
5ab12f41bd
Consistently use questions in bill form (#900)
* Consistently use questions in bill form

* fixup
2021-10-30 17:35:43 +02:00
Glandos
ff4de78b56
Reduce the size of showcase images (#899)
Fixes #875

Original showcase images are kept in another directory, and compressed
in webp in the distributed directory.
Since they won't change so much, let's keep them in git.
2021-10-30 17:30:59 +02:00
Oğuz Ersen
7f5977a738 Translated using Weblate (Turkish)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2021-10-28 21:41:33 +02:00
Baptiste Jonglez
180f3ef3fb Rebuild translation files 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
68a4aa05e8 Add missing configuration variables (ENABLE_CAPTCHA and LEGAL_LINK) 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
f68263328c Improve performance of balance and statistics computation (see #889) 2021-10-23 17:20:19 +02:00
53c88c3b13
Add a LEGAL_LINK setting. Fixes #761 (#883) 2021-10-21 19:16:32 +02:00
Baptiste
d168e15357 Translated using Weblate (French)
Currently translated at 100.0% (263 of 263 strings)

Co-authored-by: Baptiste <weblate@bitsofnetworks.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2021-10-21 09:38:52 +02:00
d1297c9c64 Reduce the resolution of showcase pictures by 50%.
Done with `mogrify -quality 75% -resize 50% ihatemoney/static/showcase/*.jpg`.

Before :
```
du -hsc ihatemoney/static/showcase/?.jpg
576K	ihatemoney/static/showcase/1.jpg
512K	ihatemoney/static/showcase/2.jpg
424K	ihatemoney/static/showcase/3.jpg
464K	ihatemoney/static/showcase/4.jpg
464K	ihatemoney/static/showcase/5.jpg
712K	ihatemoney/static/showcase/6.jpg
492K	ihatemoney/static/showcase/7.jpg
592K	ihatemoney/static/showcase/8.jpg
788K	ihatemoney/static/showcase/9.jpg
5.0M	total
```

After :
```
184K	ihatemoney/static/showcase/1.jpg
140K	ihatemoney/static/showcase/2.jpg
136K	ihatemoney/static/showcase/3.jpg
132K	ihatemoney/static/showcase/4.jpg
144K	ihatemoney/static/showcase/5.jpg
208K	ihatemoney/static/showcase/6.jpg
160K	ihatemoney/static/showcase/7.jpg
164K	ihatemoney/static/showcase/8.jpg
224K	ihatemoney/static/showcase/9.jpg
1,5M	total
```

Fixes #875
2021-10-21 09:34:45 +02:00
Baptiste Jonglez
7fdb72cff8 tests: allow to choose project name independently from ID (no change by default) 2021-10-20 23:29:11 +02:00
zorun
97447c96f5
Improve pagination style (#873)
The style for top and bottom pagination was different, and the top part
was confusing.

Also translate bottom pagination text.

Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2021-10-20 00:53:50 +02:00
cfbce99f19 Fix Weblate 2021-10-19 23:30:34 +02:00
c81c30ff93
Fix weblate (#867)
* Translated using Weblate (French)

Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-10-19 23:26:27 +02:00
Oğuz Ersen
ed0f70d4e7
Translated using Weblate (Turkish)
Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
2021-10-19 23:01:34 +02:00
f09c3355f2
Translated using Weblate (French)
Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
2021-10-19 23:01:34 +02:00
3fd69f2267
Prepare 5.0 (#866)
* Update changelog.

Based on the work done in #570 and #834 by @Natim and @Glandos.

* Update contributing.rst release instructions.

* Update documentation configuration.

* Update translations

* Update translation strings

* Preparing release 5.0.0

* Back to development: 5.0.1
2021-10-19 23:01:29 +02:00
Weblate (bot)
2542781218
Translated using Weblate (Kannada) (#863)
Currently translated at 26.9% (71 of 263 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money

Co-authored-by: a-g-rao <athrigrao@gmail.com>
2021-10-19 00:25:07 +02:00
Glandos
7a15051996
Make multiple currency optional (#864)
* Make multiple currency optional
Fixes #848

A description is provided in project settings to make the feature self explanatory.

* I forgot the description.
Let's update translation altogether.

* black format
2021-10-18 23:46:53 +02:00