diff --git a/.github/actions/setup_project/action.yml b/.github/actions/setup_project/action.yml index 951aba32..599fa11e 100644 --- a/.github/actions/setup_project/action.yml +++ b/.github/actions/setup_project/action.yml @@ -6,7 +6,7 @@ runs: - name: Install apt packages uses: awalsh128/cache-apt-pkgs-action@latest with: - packages: gettext pipx + packages: gettext version: 1.0 # increment to reset cache - name: Set up python @@ -19,12 +19,12 @@ runs: uses: actions/cache@v3 with: path: ~/.local - key: poetry-1 # increment to reset cache + key: poetry-3 # increment to reset cache - name: Install Poetry if: steps.cached-poetry.outputs.cache-hit != 'true' shell: bash - run: pipx install poetry + run: curl -sSL https://install.python-poetry.org | python3 - - name: Check pyproject.toml syntax shell: bash diff --git a/accounting/static/webpack/accounting/components/ajax-select-index.ts b/accounting/static/bundled/accounting/components/ajax-select-index.ts similarity index 100% rename from accounting/static/webpack/accounting/components/ajax-select-index.ts rename to accounting/static/bundled/accounting/components/ajax-select-index.ts diff --git a/accounting/widgets/select.py b/accounting/widgets/select.py index 27714440..6b3145b7 100644 --- a/accounting/widgets/select.py +++ b/accounting/widgets/select.py @@ -4,7 +4,7 @@ from accounting.models import ClubAccount, Company from accounting.schemas import ClubAccountSchema, CompanySchema from core.views.widgets.select import AutoCompleteSelect, AutoCompleteSelectMultiple -_js = ["webpack/accounting/components/ajax-select-index.ts"] +_js = ["bundled/accounting/components/ajax-select-index.ts"] class AutoCompleteSelectClubAccount(AutoCompleteSelect): diff --git a/babel.config.json b/babel.config.json deleted file mode 100644 index 623ee01c..00000000 --- a/babel.config.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "edge": "17", - "firefox": "60", - "chrome": "67", - "safari": "11.1" - } - } - ] - ] -} diff --git a/club/static/webpack/club/components/ajax-select-index.ts b/club/static/bundled/club/components/ajax-select-index.ts similarity index 100% rename from club/static/webpack/club/components/ajax-select-index.ts rename to club/static/bundled/club/components/ajax-select-index.ts diff --git a/club/widgets/select.py b/club/widgets/select.py index c7063328..d46bb344 100644 --- a/club/widgets/select.py +++ b/club/widgets/select.py @@ -4,7 +4,7 @@ from club.models import Club from club.schemas import ClubSchema from core.views.widgets.select import AutoCompleteSelect, AutoCompleteSelectMultiple -_js = ["webpack/club/components/ajax-select-index.ts"] +_js = ["bundled/club/components/ajax-select-index.ts"] class AutoCompleteSelectClub(AutoCompleteSelect): diff --git a/com/templates/com/screen_slideshow.jinja b/com/templates/com/screen_slideshow.jinja index 509c0640..448f8dfc 100644 --- a/com/templates/com/screen_slideshow.jinja +++ b/com/templates/com/screen_slideshow.jinja @@ -3,7 +3,7 @@
{% trans %}Moderate{% endtrans %} - - {% trans %}Delete{% endtrans %}
+- + {% set current_page = url('core:file_moderation') + "?page=" + page_obj.number | string %} +
+
+
{% endif %}
@@ -166,9 +174,37 @@
current_page (django.core.paginator.Page): the current page object
paginator (django.core.paginator.Paginator): the paginator object
#}
+ {{ paginate_server_side(current_page, paginator, False) }}
+{% endmacro %}
+
+{% macro paginate_htmx(current_page, paginator) %}
+ {# Add pagination buttons for pages without Alpine but supporting fragments.
+
+ This must be coupled with a view that handles pagination
+ with the Django Paginator object and supports fragments.
+
+ The replaced fragment will be #content so make sure you are calling this macro inside your content block.
+
+ Parameters:
+ current_page (django.core.paginator.Page): the current page object
+ paginator (django.core.paginator.Paginator): the paginator object
+ #}
+ {{ paginate_server_side(current_page, paginator, True) }}
+{% endmacro %}
+
+{% macro paginate_server_side(current_page, paginator, use_htmx) %}