Commit Graph

416 Commits (5d67f815da864787fd04fd620b7c585ffcdd322d)

Author SHA1 Message Date
Fabio Caccamo b8a8c1595f Add `pyupgrade` to `pre-commit` config. 2022-12-31 18:53:01 +01:00
Fabio Caccamo b10cb336ce Update `CHANGELOG` and version. 2022-12-19 15:34:03 +01:00
Fabio Caccamo cc79cf1549 Fix modal and popup opening at the same time. 2022-12-19 15:31:02 +01:00
Mounir b3540bc019
Make `Theme.get_active_theme` class method a manager method. (#230)
- Make `get_active_theme` a manager method instead of class method
- Replace `get_active_theme` by `get_active`
- Refactor signals handlers
2022-12-15 11:32:33 +01:00
Fabio Caccamo 186e78b846 Update `CHANGELOG` and version. 2022-12-14 13:00:59 +01:00
Fabio Caccamo 2da294e28f [css] Improve changelist filter margins. 2022-12-14 12:58:57 +01:00
Fabio Caccamo fca8e6d47b Fix modal opener buttons not working when added to the DOM asynchronously. #228 2022-12-14 12:38:47 +01:00
Fabio Caccamo 9522f1a156 Update `CHANGELOG` and version. 2022-12-11 23:37:11 +01:00
Fabio Caccamo 9c1af23785 Run `pre-commit`. 2022-12-11 23:07:11 +01:00
Éric 15da0bfd9a
minor cleanups (#225)
* use normal html self-closing tags

* stop using obsolete test integration

* make test more straightforward

* removed unused setting
2022-12-11 22:53:05 +01:00
Éric 19cbeead58
Include date hierarchy in quick removal links (#218)
* Include date hierarchy in quick removal links

* use date field name in removal link

* reduce diff

* tweak some details

* start adding tests

* use mock without spec :(

it's not easy to instantiate ChangeList, and speccing from
the class means that many attributes are not recognized

* more tests

* more tests

* more checks for generated URLs

* better tags and tests

* compat for tox 4
2022-12-11 20:44:31 +01:00
Vasanth 79f3fefaad
Text color on focus (#223) 2022-12-09 11:08:02 +01:00
Fabio Caccamo 98b8025ed7 Replace `str.format` with `f-strings`. 2022-12-06 13:44:32 +01:00
Fabio Caccamo ae78cb7b86 Update german translations. 2022-12-05 10:21:39 +01:00
Vasanth a75c16162f
[css] Fix inlines vertical alignement (#201)
Co-authored-by: vaz <vmohan@lenbox.io>
2022-12-05 10:19:44 +01:00
derzinn 14634aa505
Add german translation (#222)
* Added german translation

* Updated languages for test cases

* Updated identical message strings

* Updated django.po with corrected file paths

* Re-generated django.mo file

* Language lists sorted by code for test cases
2022-12-05 10:13:11 +01:00
Fabio Caccamo b88d7d8b95 Reformat models module. 2022-12-03 14:04:01 +01:00
Fabio Caccamo 60649ac4e6 Remove `post_migrate` signal handler and multi db test. 2022-12-03 14:01:57 +01:00
Éric d62593e01b
Drop old Python and Django versions (#220)
* drop old python and django versions

* fix tests

* remove compat module entirely

Co-authored-by: Fabio Caccamo <fabio.caccamo@gmail.com>
2022-12-03 13:49:09 +01:00
Vasanth 333025f877
Fix broken tabbed inline name. #221
Co-authored-by: vaz <vmohan@lenbox.io>
2022-12-02 11:18:52 +01:00
Fabio Caccamo 762d1184dd Update `CHANGELOG` and version. 2022-11-30 19:18:25 +01:00
Fabio Caccamo 967f5827f2 [tabbed-changeform] Improve tabbed changeform feature. 2022-11-30 19:06:52 +01:00
Fabio Caccamo f2b800d9ca [css] Adjust list filter dropdown `margin-top`. 2022-11-30 15:38:39 +01:00
Vasanth 07dcb77b88
Add border to rest of the tab space (#215)
* add border to rest of the tab space

* All tabs should be False

* slugify div ids

* bottom padding for horizontal

* do not show solo tabs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use properties over attribute

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* rename id to class

* scrollbar shenanigans

* rename tag

* wip : button weirdness in safari

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-30 15:33:59 +01:00
Fabio Caccamo a76de04a8b [css] Reduce secondary scrollbars size. 2022-11-30 15:13:27 +01:00
Fabio Caccamo 1d963230e4 [css] Fix nav filter style on Safari. 2022-11-30 14:54:41 +01:00
Fabio Caccamo 81ebbaa2c9 [css] Fix nav filter clipped outline on focus. 2022-11-30 14:50:27 +01:00
Fabio Caccamo 5376089110 [css] Improve language chooser style. 2022-11-30 14:34:56 +01:00
Fabio Caccamo 79dfb2fea9 [css] Improve nav filter style. #214 2022-11-30 14:34:38 +01:00
Fabio Caccamo 5009e97086 [css] Adjust list filter dropdown vertical margins. 2022-11-29 17:04:20 +01:00
Fabio Caccamo b5fdd6ec19 [css] Reduce scrollbar width on scrollable sticky elements. 2022-11-29 16:45:32 +01:00
Fabio Caccamo 82f2fd7a84 Update translations. 2022-11-26 09:56:50 +01:00
Vasanth cc1f72b23d
Add tabbed changeform support (#211).
* WIP : basic templates

* Add params

* Working override

* Use headerless version only during tabs

* Move CSS to separate file

* Extract js to static folder

* script is not self-closing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use classList for updating classes

* Add EOF (newline) to new text files

* a simple test to keep up code coverage

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fieldsets are not tabbed by default

* rename templatetag

* use default page if show_*_tabs are false

* Narrow down css to admin-interface

* Fix typo

* keep codacy happy

* prefix tab classes with tabbed-changeform-

* horizontal scrolling

* Update colors

* color updates

* add back missing font bold

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-26 09:54:33 +01:00
Vasanth 23511d04b2
Fix #208 - do not assume active DB when not specified (#210).
* Do not assume active DB when not specified

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add db routing test case

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* one more test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use assertRaises instead of expectedFailure

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Catch a general exception for  django < 2.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use `with` instead of callable

* skip test for django < 2.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove repeated test

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-26 09:53:33 +01:00
Fabio Caccamo 75a52c6449 Update `CHANGELOG` and version. 2022-11-18 21:29:30 +01:00
Fabio Caccamo 0ad9ca74ae Remove translations line numbers. 2022-11-18 21:12:51 +01:00
Fabio Caccamo 158128d864 Add missing `using` parameter in `pre_save` signal handler. 2022-11-18 13:32:30 +01:00
Vasanth 946b9c98e0
Respect 'using' in signals (#200) 2022-11-18 13:07:59 +01:00
Fabio Caccamo 092175202c Update translations. 2022-10-17 14:38:16 +02:00
Fabio Caccamo 5e58c35b08 Run `pre-commit`. 2022-10-14 17:31:57 +02:00
Fabio Caccamo bf72f6c982 Update `CHANGELOG` and version. 2022-10-13 12:06:35 +02:00
Fabio Caccamo 53e5b66785 [css] Fix list-filter dropdown vertical margins. 2022-10-13 12:04:08 +02:00
Fabio Caccamo 5e5e811102 [css] Add `django-rangefilter` style optimizations. 2022-10-13 12:01:00 +02:00
Fabio Caccamo da027966c0 [css] Fix calendar prev/next arrows style. 2022-10-13 11:58:34 +02:00
Fabio Caccamo 87fdcc7f16 Format code. 2022-10-13 11:54:07 +02:00
Fabio Caccamo 3f46d3aa32 Fix `KeyError` raised by `django-rangefilter`. 2022-10-13 11:53:20 +02:00
Fabio Caccamo 5ffd77ef0b Update `CHANGELOG` and version. 2022-10-12 11:32:13 +02:00
Fabio Caccamo a7ca8f96cb Fix duplicated welcome message. #185 2022-10-12 11:28:24 +02:00
Éric bd2fede501
Add CI checks for migrations and translations. #186
* ci: add migration check

* fix install

* fix tox config

* ci: add check for outdated translations

* update french translation

* ci: django needs xgettext

* option --all doesn't work

* refresh all translations

* ci: help debug failed jobs

* ci: fix jobs graph

* ci: also check that compiled catalogs are up to date
2022-10-12 10:17:17 +02:00
Éric f8ace75f36
Add option for list filter quick remove. #183
* add option for list filter quick remove

* move transform from css to python

* make template tag more resilient for unusual filters

* fix tests

* rename field, move rendering to template, change style

* fix tests
2022-10-11 18:15:21 +02:00