invenio-banners 4.1.0__tar.gz → 5.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of invenio-banners might be problematic. Click here for more details.
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/CHANGES.rst +13 -1
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/PKG-INFO +17 -4
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/__init__.py +2 -2
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/administration/banners.py +6 -5
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/config.py +4 -3
- invenio_banners-5.0.0/invenio_banners/translations/messages.pot +174 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners.egg-info/PKG-INFO +17 -4
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners.egg-info/SOURCES.txt +0 -18
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners.egg-info/entry_points.txt +3 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners.egg-info/requires.txt +1 -1
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/setup.cfg +11 -9
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/conftest.py +8 -0
- invenio_banners-4.1.0/invenio_banners/translations/af/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/de_AT/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/de_DE/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/en_AT/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/en_HU/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/es_CU/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/es_MX/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/et_EE/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/fa_IR/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/fr_CI/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/fr_FR/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/gl/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/hi_IN/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/hu_HU/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/messages.pot +0 -165
- invenio_banners-4.1.0/invenio_banners/translations/ne/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/rw/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/sv_SE/LC_MESSAGES/messages.po +0 -160
- invenio_banners-4.1.0/invenio_banners/translations/uk_UA/LC_MESSAGES/messages.po +0 -160
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.dockerignore +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.editorconfig +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.git-blame-ignore-revs +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.github/workflows/i18n-pull.yml +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.github/workflows/i18n-push.yml +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.github/workflows/pypi-publish.yml +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.github/workflows/tests.yml +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/.tx/config +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/AUTHORS.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/CONTRIBUTING.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/INSTALL.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/LICENSE +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/MANIFEST.in +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/README.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/babel.ini +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/Makefile +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/api.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/authors.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/changes.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/conf.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/configuration.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/contributing.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/index.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/installation.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/license.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/make.bat +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/requirements.txt +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/docs/usage.rst +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/administration/__init__.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/alembic/5e02314da32e_create_invenio_banners_db_table.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/alembic/e40d93d99040_create_invenio_banners_branch.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/ext.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/proxies.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/records/__init__.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/records/models.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/resources/__init__.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/resources/config.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/resources/errors.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/resources/resource.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/services/__init__.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/services/config.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/services/errors.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/services/permissions.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/services/results.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/services/schemas.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/services/service.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/templates/semantic-ui/invenio_banners/banner.html +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/ar/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/bg/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/ca/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/cs/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/da/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/de/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/el/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/es/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/et/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/fa/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/fr/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/hr/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/hu/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/it/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/ja/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/ka/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/lt/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/no/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/pl/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/pt/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/ro/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/ru/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/sk/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/sv/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/tr/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/uk/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/zh_CN/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/translations/zh_TW/LC_MESSAGES/messages.po +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/utils.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners/views.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners.egg-info/dependency_links.txt +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners.egg-info/not-zip-safe +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/invenio_banners.egg-info/top_level.txt +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/pyproject.toml +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/requirements-devel.txt +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/run-tests.sh +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/setup.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/records/test_disable.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/records/test_models.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/resources/conftest.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/resources/test_resources.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/services/conftest.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/services/test_services.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/test_invenio_banners.py +0 -0
- {invenio_banners-4.1.0 → invenio_banners-5.0.0}/tests/test_macro.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
..
|
|
2
2
|
Copyright (C) 2020-2024 CERN.
|
|
3
|
-
Copyright (C) 2024 Graz University of Technology.
|
|
3
|
+
Copyright (C) 2024-2025 Graz University of Technology.
|
|
4
4
|
|
|
5
5
|
Invenio-Banners is free software; you can redistribute it and/or modify
|
|
6
6
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
Changes
|
|
9
9
|
=======
|
|
10
10
|
|
|
11
|
+
Version v5.0.0 (released 2025-06-03)
|
|
12
|
+
|
|
13
|
+
- setup: bump major dependencies
|
|
14
|
+
- fix(tests): add configuration
|
|
15
|
+
- i18n: add translation entry point (#48)
|
|
16
|
+
- fix: setuptools moved from dash to underscore
|
|
17
|
+
- i18n: removed deprecated messages
|
|
18
|
+
|
|
19
|
+
Version v4.1.1 (released 2025-03-26)
|
|
20
|
+
|
|
21
|
+
- i18n: mark missing strings for translation and push translations
|
|
22
|
+
|
|
11
23
|
Version v4.1.0 (released 2025-01-22)
|
|
12
24
|
|
|
13
25
|
- templates: pass ui classes through macro parameters
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: invenio-banners
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: Invenio-Banners is a module used to create and show banners with useful messages to users.
|
|
5
5
|
Home-page: https://github.com/inveniosoftware/invenio-banners
|
|
6
6
|
Author: CERN
|
|
@@ -13,7 +13,7 @@ Requires-Python: >=3.7
|
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
License-File: AUTHORS.rst
|
|
15
15
|
Requires-Dist: invenio-i18n<4.0.0,>=3.0.0
|
|
16
|
-
Requires-Dist: invenio-administration<
|
|
16
|
+
Requires-Dist: invenio-administration<5.0.0,>=4.0.0
|
|
17
17
|
Provides-Extra: tests
|
|
18
18
|
Requires-Dist: pytest-black-ng>=0.4.0; extra == "tests"
|
|
19
19
|
Requires-Dist: pytest-invenio<4.0.0,>=3.0.0; extra == "tests"
|
|
@@ -24,6 +24,7 @@ Provides-Extra: opensearch1
|
|
|
24
24
|
Requires-Dist: invenio-search[opensearch1]<4.0.0,>=3.0.0; extra == "opensearch1"
|
|
25
25
|
Provides-Extra: opensearch2
|
|
26
26
|
Requires-Dist: invenio-search[opensearch2]<4.0.0,>=3.0.0; extra == "opensearch2"
|
|
27
|
+
Dynamic: license-file
|
|
27
28
|
|
|
28
29
|
..
|
|
29
30
|
Copyright (C) 2020 CERN.
|
|
@@ -57,7 +58,7 @@ https://invenio-banners.readthedocs.io/
|
|
|
57
58
|
|
|
58
59
|
..
|
|
59
60
|
Copyright (C) 2020-2024 CERN.
|
|
60
|
-
Copyright (C) 2024 Graz University of Technology.
|
|
61
|
+
Copyright (C) 2024-2025 Graz University of Technology.
|
|
61
62
|
|
|
62
63
|
Invenio-Banners is free software; you can redistribute it and/or modify
|
|
63
64
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -65,6 +66,18 @@ https://invenio-banners.readthedocs.io/
|
|
|
65
66
|
Changes
|
|
66
67
|
=======
|
|
67
68
|
|
|
69
|
+
Version v5.0.0 (released 2025-06-03)
|
|
70
|
+
|
|
71
|
+
- setup: bump major dependencies
|
|
72
|
+
- fix(tests): add configuration
|
|
73
|
+
- i18n: add translation entry point (#48)
|
|
74
|
+
- fix: setuptools moved from dash to underscore
|
|
75
|
+
- i18n: removed deprecated messages
|
|
76
|
+
|
|
77
|
+
Version v4.1.1 (released 2025-03-26)
|
|
78
|
+
|
|
79
|
+
- i18n: mark missing strings for translation and push translations
|
|
80
|
+
|
|
68
81
|
Version v4.1.0 (released 2025-01-22)
|
|
69
82
|
|
|
70
83
|
- templates: pass ui classes through macro parameters
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2020-2024 CERN.
|
|
4
|
-
# Copyright (C) 2024 Graz University of Technology.
|
|
4
|
+
# Copyright (C) 2024-2025 Graz University of Technology.
|
|
5
5
|
#
|
|
6
6
|
# Invenio-Banners is free software; you can redistribute it and/or modify it
|
|
7
7
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
from .ext import InvenioBanners
|
|
12
12
|
|
|
13
|
-
__version__ = "
|
|
13
|
+
__version__ = "5.0.0"
|
|
14
14
|
|
|
15
15
|
__all__ = ("__version__", "InvenioBanners")
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2023 CERN.
|
|
4
|
+
# Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
#
|
|
5
6
|
# Invenio-Banners is free software; you can redistribute it and/or modify it
|
|
6
7
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -22,8 +23,8 @@ class BannerListView(AdminResourceListView):
|
|
|
22
23
|
api_endpoint = "/banners"
|
|
23
24
|
name = "banners"
|
|
24
25
|
resource_config = "banners_resource"
|
|
25
|
-
title = "Banners"
|
|
26
|
-
menu_label = "Banners"
|
|
26
|
+
title = _("Banners")
|
|
27
|
+
menu_label = _("Banners")
|
|
27
28
|
category = _("Site management")
|
|
28
29
|
pid_path = "id"
|
|
29
30
|
icon = "newspaper"
|
|
@@ -127,7 +128,7 @@ class BannerEditView(AdminResourceEditView):
|
|
|
127
128
|
resource_config = "banners_resource"
|
|
128
129
|
pid_path = "id"
|
|
129
130
|
api_endpoint = "/banners"
|
|
130
|
-
title = "Edit Banner"
|
|
131
|
+
title = _("Edit Banner")
|
|
131
132
|
|
|
132
133
|
list_view_name = "banners"
|
|
133
134
|
|
|
@@ -146,7 +147,7 @@ class BannerCreateView(AdminResourceCreateView):
|
|
|
146
147
|
resource_config = "banners_resource"
|
|
147
148
|
pid_path = "id"
|
|
148
149
|
api_endpoint = "/banners"
|
|
149
|
-
title = "Create Banner"
|
|
150
|
+
title = _("Create Banner")
|
|
150
151
|
|
|
151
152
|
list_view_name = "banners"
|
|
152
153
|
|
|
@@ -162,7 +163,7 @@ class BannerDetailView(AdminResourceDetailView):
|
|
|
162
163
|
api_endpoint = "/banners"
|
|
163
164
|
name = "banner-details"
|
|
164
165
|
resource_config = "banners_resource"
|
|
165
|
-
title = "Banner Details"
|
|
166
|
+
title = _("Banner Details")
|
|
166
167
|
|
|
167
168
|
display_delete = True
|
|
168
169
|
display_edit = True
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2020-2023 CERN.
|
|
4
|
+
# Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
#
|
|
5
6
|
# Invenio-Banners is free software; you can redistribute it and/or modify it
|
|
6
7
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -12,9 +13,9 @@ from invenio_i18n import lazy_gettext as _
|
|
|
12
13
|
from invenio_banners.utils import style_category
|
|
13
14
|
|
|
14
15
|
BANNERS_CATEGORIES = [
|
|
15
|
-
("info", "Info"),
|
|
16
|
-
("warning", "Warning"),
|
|
17
|
-
("other", "Other"),
|
|
16
|
+
("info", _("Info")),
|
|
17
|
+
("warning", _("Warning")),
|
|
18
|
+
("other", _("Other")),
|
|
18
19
|
]
|
|
19
20
|
"""Categories to define different types of messages. List of (id, label)."""
|
|
20
21
|
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Translations template for invenio-banners.
|
|
2
|
+
# Copyright (C) 2025 CERN
|
|
3
|
+
# This file is distributed under the same license as the invenio-banners
|
|
4
|
+
# project.
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
|
|
6
|
+
#
|
|
7
|
+
#, fuzzy
|
|
8
|
+
msgid ""
|
|
9
|
+
msgstr ""
|
|
10
|
+
"Project-Id-Version: invenio-banners 4.1.0\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
|
|
12
|
+
"POT-Creation-Date: 2025-02-20 13:53+0000\n"
|
|
13
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
14
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
15
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
16
|
+
"MIME-Version: 1.0\n"
|
|
17
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
19
|
+
"Generated-By: Babel 2.17.0\n"
|
|
20
|
+
|
|
21
|
+
#: invenio_banners/config.py:16
|
|
22
|
+
msgid "Info"
|
|
23
|
+
msgstr ""
|
|
24
|
+
|
|
25
|
+
#: invenio_banners/config.py:17
|
|
26
|
+
msgid "Warning"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
#: invenio_banners/config.py:18
|
|
30
|
+
msgid "Other"
|
|
31
|
+
msgstr ""
|
|
32
|
+
|
|
33
|
+
#: invenio_banners/administration/banners.py:43
|
|
34
|
+
#: invenio_banners/administration/banners.py:86
|
|
35
|
+
#: invenio_banners/administration/banners.py:178 invenio_banners/config.py:38
|
|
36
|
+
msgid "URL path"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
#: invenio_banners/config.py:42
|
|
40
|
+
msgid "Start DateTime"
|
|
41
|
+
msgstr ""
|
|
42
|
+
|
|
43
|
+
#: invenio_banners/config.py:46
|
|
44
|
+
msgid "End DateTime"
|
|
45
|
+
msgstr ""
|
|
46
|
+
|
|
47
|
+
#: invenio_banners/administration/banners.py:42
|
|
48
|
+
#: invenio_banners/administration/banners.py:113
|
|
49
|
+
#: invenio_banners/administration/banners.py:180 invenio_banners/config.py:50
|
|
50
|
+
#: invenio_banners/services/config.py:60
|
|
51
|
+
msgid "Active"
|
|
52
|
+
msgstr ""
|
|
53
|
+
|
|
54
|
+
#: invenio_banners/administration/banners.py:26
|
|
55
|
+
#: invenio_banners/administration/banners.py:27
|
|
56
|
+
msgid "Banners"
|
|
57
|
+
msgstr ""
|
|
58
|
+
|
|
59
|
+
#: invenio_banners/administration/banners.py:28
|
|
60
|
+
msgid "Site management"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
#: invenio_banners/administration/banners.py:38
|
|
64
|
+
msgid "Id"
|
|
65
|
+
msgstr ""
|
|
66
|
+
|
|
67
|
+
#: invenio_banners/administration/banners.py:39
|
|
68
|
+
msgid "Start time (UTC)"
|
|
69
|
+
msgstr ""
|
|
70
|
+
|
|
71
|
+
#: invenio_banners/administration/banners.py:40
|
|
72
|
+
msgid "End time (UTC)"
|
|
73
|
+
msgstr ""
|
|
74
|
+
|
|
75
|
+
#: invenio_banners/administration/banners.py:41
|
|
76
|
+
#: invenio_banners/administration/banners.py:78
|
|
77
|
+
#: invenio_banners/administration/banners.py:177
|
|
78
|
+
msgid "Message"
|
|
79
|
+
msgstr ""
|
|
80
|
+
|
|
81
|
+
#: invenio_banners/administration/banners.py:44
|
|
82
|
+
#: invenio_banners/administration/banners.py:98
|
|
83
|
+
#: invenio_banners/administration/banners.py:179
|
|
84
|
+
msgid "Category"
|
|
85
|
+
msgstr ""
|
|
86
|
+
|
|
87
|
+
#: invenio_banners/administration/banners.py:56
|
|
88
|
+
#: invenio_banners/administration/banners.py:175
|
|
89
|
+
#: invenio_banners/services/config.py:52
|
|
90
|
+
msgid "Start time"
|
|
91
|
+
msgstr ""
|
|
92
|
+
|
|
93
|
+
#: invenio_banners/administration/banners.py:58
|
|
94
|
+
msgid ""
|
|
95
|
+
"Date/time to make the banner active. Input format: yyyy-mm-dd hh:mm:ss. "
|
|
96
|
+
"Set to future date/time to delay the banner. Note: specify time in UTC "
|
|
97
|
+
"time standard."
|
|
98
|
+
msgstr ""
|
|
99
|
+
|
|
100
|
+
#: invenio_banners/administration/banners.py:63
|
|
101
|
+
#: invenio_banners/administration/banners.py:74
|
|
102
|
+
msgid "YYYY-MM-DD hh:mm:ss"
|
|
103
|
+
msgstr ""
|
|
104
|
+
|
|
105
|
+
#: invenio_banners/administration/banners.py:67
|
|
106
|
+
#: invenio_banners/administration/banners.py:176
|
|
107
|
+
#: invenio_banners/services/config.py:56
|
|
108
|
+
msgid "End time"
|
|
109
|
+
msgstr ""
|
|
110
|
+
|
|
111
|
+
#: invenio_banners/administration/banners.py:69
|
|
112
|
+
msgid ""
|
|
113
|
+
"Date/time to make the banner inactive. Input format: yyyy-mm-dd hh:mm:ss."
|
|
114
|
+
" An empty value makes the banner active until manually disabled via the "
|
|
115
|
+
"active flag. Note: specify time in UTC time standard."
|
|
116
|
+
msgstr ""
|
|
117
|
+
|
|
118
|
+
#: invenio_banners/administration/banners.py:80
|
|
119
|
+
msgid "Message to be displayed on the banner. HTML format is supported."
|
|
120
|
+
msgstr ""
|
|
121
|
+
|
|
122
|
+
#: invenio_banners/administration/banners.py:88
|
|
123
|
+
msgid ""
|
|
124
|
+
"URL path prefix (including the first /) to define where the message will "
|
|
125
|
+
"be active on the site. For example, if you enter `/records`, any URL "
|
|
126
|
+
"starting with `/records` will return an active banner (`/records`, "
|
|
127
|
+
"`/records/1234`, etc.). An empty value makes the banner active for any "
|
|
128
|
+
"URL."
|
|
129
|
+
msgstr ""
|
|
130
|
+
|
|
131
|
+
#: invenio_banners/administration/banners.py:100
|
|
132
|
+
msgid ""
|
|
133
|
+
"Banner category. `Info` option displays a blue banner. `Warning` option "
|
|
134
|
+
"displays an orange banner. `Other` option displays a gray banner."
|
|
135
|
+
msgstr ""
|
|
136
|
+
|
|
137
|
+
#: invenio_banners/administration/banners.py:115
|
|
138
|
+
msgid ""
|
|
139
|
+
"Tick it to activate the banner: banner will be displayed according to "
|
|
140
|
+
"start/end times. If not activated, start/end times will be ignored."
|
|
141
|
+
msgstr ""
|
|
142
|
+
|
|
143
|
+
#: invenio_banners/administration/banners.py:131
|
|
144
|
+
msgid "Edit Banner"
|
|
145
|
+
msgstr ""
|
|
146
|
+
|
|
147
|
+
#: invenio_banners/administration/banners.py:150
|
|
148
|
+
msgid "Create Banner"
|
|
149
|
+
msgstr ""
|
|
150
|
+
|
|
151
|
+
#: invenio_banners/administration/banners.py:166
|
|
152
|
+
msgid "Banner Details"
|
|
153
|
+
msgstr ""
|
|
154
|
+
|
|
155
|
+
#: invenio_banners/administration/banners.py:181
|
|
156
|
+
msgid "Created"
|
|
157
|
+
msgstr ""
|
|
158
|
+
|
|
159
|
+
#: invenio_banners/administration/banners.py:182
|
|
160
|
+
msgid "Updated"
|
|
161
|
+
msgstr ""
|
|
162
|
+
|
|
163
|
+
#: invenio_banners/services/config.py:36
|
|
164
|
+
msgid "Ascending"
|
|
165
|
+
msgstr ""
|
|
166
|
+
|
|
167
|
+
#: invenio_banners/services/config.py:40
|
|
168
|
+
msgid "Descending"
|
|
169
|
+
msgstr ""
|
|
170
|
+
|
|
171
|
+
#: invenio_banners/services/config.py:48
|
|
172
|
+
msgid "Url path"
|
|
173
|
+
msgstr ""
|
|
174
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: invenio-banners
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: Invenio-Banners is a module used to create and show banners with useful messages to users.
|
|
5
5
|
Home-page: https://github.com/inveniosoftware/invenio-banners
|
|
6
6
|
Author: CERN
|
|
@@ -13,7 +13,7 @@ Requires-Python: >=3.7
|
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
License-File: AUTHORS.rst
|
|
15
15
|
Requires-Dist: invenio-i18n<4.0.0,>=3.0.0
|
|
16
|
-
Requires-Dist: invenio-administration<
|
|
16
|
+
Requires-Dist: invenio-administration<5.0.0,>=4.0.0
|
|
17
17
|
Provides-Extra: tests
|
|
18
18
|
Requires-Dist: pytest-black-ng>=0.4.0; extra == "tests"
|
|
19
19
|
Requires-Dist: pytest-invenio<4.0.0,>=3.0.0; extra == "tests"
|
|
@@ -24,6 +24,7 @@ Provides-Extra: opensearch1
|
|
|
24
24
|
Requires-Dist: invenio-search[opensearch1]<4.0.0,>=3.0.0; extra == "opensearch1"
|
|
25
25
|
Provides-Extra: opensearch2
|
|
26
26
|
Requires-Dist: invenio-search[opensearch2]<4.0.0,>=3.0.0; extra == "opensearch2"
|
|
27
|
+
Dynamic: license-file
|
|
27
28
|
|
|
28
29
|
..
|
|
29
30
|
Copyright (C) 2020 CERN.
|
|
@@ -57,7 +58,7 @@ https://invenio-banners.readthedocs.io/
|
|
|
57
58
|
|
|
58
59
|
..
|
|
59
60
|
Copyright (C) 2020-2024 CERN.
|
|
60
|
-
Copyright (C) 2024 Graz University of Technology.
|
|
61
|
+
Copyright (C) 2024-2025 Graz University of Technology.
|
|
61
62
|
|
|
62
63
|
Invenio-Banners is free software; you can redistribute it and/or modify
|
|
63
64
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -65,6 +66,18 @@ https://invenio-banners.readthedocs.io/
|
|
|
65
66
|
Changes
|
|
66
67
|
=======
|
|
67
68
|
|
|
69
|
+
Version v5.0.0 (released 2025-06-03)
|
|
70
|
+
|
|
71
|
+
- setup: bump major dependencies
|
|
72
|
+
- fix(tests): add configuration
|
|
73
|
+
- i18n: add translation entry point (#48)
|
|
74
|
+
- fix: setuptools moved from dash to underscore
|
|
75
|
+
- i18n: removed deprecated messages
|
|
76
|
+
|
|
77
|
+
Version v4.1.1 (released 2025-03-26)
|
|
78
|
+
|
|
79
|
+
- i18n: mark missing strings for translation and push translations
|
|
80
|
+
|
|
68
81
|
Version v4.1.0 (released 2025-01-22)
|
|
69
82
|
|
|
70
83
|
- templates: pass ui classes through macro parameters
|
|
@@ -64,50 +64,32 @@ invenio_banners/services/schemas.py
|
|
|
64
64
|
invenio_banners/services/service.py
|
|
65
65
|
invenio_banners/templates/semantic-ui/invenio_banners/banner.html
|
|
66
66
|
invenio_banners/translations/messages.pot
|
|
67
|
-
invenio_banners/translations/af/LC_MESSAGES/messages.po
|
|
68
67
|
invenio_banners/translations/ar/LC_MESSAGES/messages.po
|
|
69
68
|
invenio_banners/translations/bg/LC_MESSAGES/messages.po
|
|
70
69
|
invenio_banners/translations/ca/LC_MESSAGES/messages.po
|
|
71
70
|
invenio_banners/translations/cs/LC_MESSAGES/messages.po
|
|
72
71
|
invenio_banners/translations/da/LC_MESSAGES/messages.po
|
|
73
72
|
invenio_banners/translations/de/LC_MESSAGES/messages.po
|
|
74
|
-
invenio_banners/translations/de_AT/LC_MESSAGES/messages.po
|
|
75
|
-
invenio_banners/translations/de_DE/LC_MESSAGES/messages.po
|
|
76
73
|
invenio_banners/translations/el/LC_MESSAGES/messages.po
|
|
77
|
-
invenio_banners/translations/en_AT/LC_MESSAGES/messages.po
|
|
78
|
-
invenio_banners/translations/en_HU/LC_MESSAGES/messages.po
|
|
79
74
|
invenio_banners/translations/es/LC_MESSAGES/messages.po
|
|
80
|
-
invenio_banners/translations/es_CU/LC_MESSAGES/messages.po
|
|
81
|
-
invenio_banners/translations/es_MX/LC_MESSAGES/messages.po
|
|
82
75
|
invenio_banners/translations/et/LC_MESSAGES/messages.po
|
|
83
|
-
invenio_banners/translations/et_EE/LC_MESSAGES/messages.po
|
|
84
76
|
invenio_banners/translations/fa/LC_MESSAGES/messages.po
|
|
85
|
-
invenio_banners/translations/fa_IR/LC_MESSAGES/messages.po
|
|
86
77
|
invenio_banners/translations/fr/LC_MESSAGES/messages.po
|
|
87
|
-
invenio_banners/translations/fr_CI/LC_MESSAGES/messages.po
|
|
88
|
-
invenio_banners/translations/fr_FR/LC_MESSAGES/messages.po
|
|
89
|
-
invenio_banners/translations/gl/LC_MESSAGES/messages.po
|
|
90
|
-
invenio_banners/translations/hi_IN/LC_MESSAGES/messages.po
|
|
91
78
|
invenio_banners/translations/hr/LC_MESSAGES/messages.po
|
|
92
79
|
invenio_banners/translations/hu/LC_MESSAGES/messages.po
|
|
93
|
-
invenio_banners/translations/hu_HU/LC_MESSAGES/messages.po
|
|
94
80
|
invenio_banners/translations/it/LC_MESSAGES/messages.po
|
|
95
81
|
invenio_banners/translations/ja/LC_MESSAGES/messages.po
|
|
96
82
|
invenio_banners/translations/ka/LC_MESSAGES/messages.po
|
|
97
83
|
invenio_banners/translations/lt/LC_MESSAGES/messages.po
|
|
98
|
-
invenio_banners/translations/ne/LC_MESSAGES/messages.po
|
|
99
84
|
invenio_banners/translations/no/LC_MESSAGES/messages.po
|
|
100
85
|
invenio_banners/translations/pl/LC_MESSAGES/messages.po
|
|
101
86
|
invenio_banners/translations/pt/LC_MESSAGES/messages.po
|
|
102
87
|
invenio_banners/translations/ro/LC_MESSAGES/messages.po
|
|
103
88
|
invenio_banners/translations/ru/LC_MESSAGES/messages.po
|
|
104
|
-
invenio_banners/translations/rw/LC_MESSAGES/messages.po
|
|
105
89
|
invenio_banners/translations/sk/LC_MESSAGES/messages.po
|
|
106
90
|
invenio_banners/translations/sv/LC_MESSAGES/messages.po
|
|
107
|
-
invenio_banners/translations/sv_SE/LC_MESSAGES/messages.po
|
|
108
91
|
invenio_banners/translations/tr/LC_MESSAGES/messages.po
|
|
109
92
|
invenio_banners/translations/uk/LC_MESSAGES/messages.po
|
|
110
|
-
invenio_banners/translations/uk_UA/LC_MESSAGES/messages.po
|
|
111
93
|
invenio_banners/translations/zh_CN/LC_MESSAGES/messages.po
|
|
112
94
|
invenio_banners/translations/zh_TW/LC_MESSAGES/messages.po
|
|
113
95
|
tests/conftest.py
|
|
@@ -19,7 +19,7 @@ python_requires = >=3.7
|
|
|
19
19
|
zip_safe = False
|
|
20
20
|
install_requires =
|
|
21
21
|
invenio-i18n>=3.0.0,<4.0.0
|
|
22
|
-
invenio-administration>=
|
|
22
|
+
invenio-administration>=4.0.0,<5.0.0
|
|
23
23
|
|
|
24
24
|
[options.extras_require]
|
|
25
25
|
tests =
|
|
@@ -49,6 +49,8 @@ invenio_administration.views =
|
|
|
49
49
|
invenio_banners_details = invenio_banners.administration.banners:BannerDetailView
|
|
50
50
|
invenio_banners_edit = invenio_banners.administration.banners:BannerEditView
|
|
51
51
|
invenio_banners_create = invenio_banners.administration.banners:BannerCreateView
|
|
52
|
+
invenio_i18n.translations =
|
|
53
|
+
invenio_banners = invenio_banners
|
|
52
54
|
|
|
53
55
|
[build_sphinx]
|
|
54
56
|
source-dir = docs/
|
|
@@ -60,22 +62,22 @@ universal = 1
|
|
|
60
62
|
|
|
61
63
|
[compile_catalog]
|
|
62
64
|
directory = invenio_banners/translations/
|
|
63
|
-
|
|
65
|
+
use_fuzzy = True
|
|
64
66
|
|
|
65
67
|
[extract_messages]
|
|
66
68
|
copyright_holder = CERN
|
|
67
69
|
msgid_bugs_address = info@inveniosoftware.org
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
mapping_file = babel.ini
|
|
71
|
+
output_file = invenio_banners/translations/messages.pot
|
|
72
|
+
add_comments = NOTE
|
|
71
73
|
|
|
72
74
|
[init_catalog]
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
input_file = invenio_banners/translations/messages.pot
|
|
76
|
+
output_dir = invenio_banners/translations/
|
|
75
77
|
|
|
76
78
|
[update_catalog]
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
input_file = invenio_banners/translations/messages.pot
|
|
80
|
+
output_dir = invenio_banners/translations/
|
|
79
81
|
|
|
80
82
|
[pydocstyle]
|
|
81
83
|
add_ignore = D401
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2020-2023 CERN.
|
|
4
|
+
# Copyright (C) 2025 Graz University of Technology.
|
|
4
5
|
#
|
|
5
6
|
# Invenio-Banners is free software; you can redistribute it and/or modify it
|
|
6
7
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -14,6 +15,13 @@ from invenio_administration.permissions import administration_access_action
|
|
|
14
15
|
from invenio_app.factory import create_api
|
|
15
16
|
|
|
16
17
|
|
|
18
|
+
@pytest.fixture(scope="module")
|
|
19
|
+
def app_config(app_config):
|
|
20
|
+
"""Application configuration fixture."""
|
|
21
|
+
app_config["THEME_FRONTPAGE"] = False
|
|
22
|
+
return app_config
|
|
23
|
+
|
|
24
|
+
|
|
17
25
|
@pytest.fixture(scope="module")
|
|
18
26
|
def celery_config():
|
|
19
27
|
"""Override pytest-invenio fixture."""
|