invenio-banners 3.2.0__py2.py3-none-any.whl → 4.1.0__py2.py3-none-any.whl
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/__init__.py +1 -1
- invenio_banners/templates/semantic-ui/invenio_banners/banner.html +5 -2
- invenio_banners/utils.py +1 -1
- {invenio_banners-3.2.0.dist-info → invenio_banners-4.1.0.dist-info}/METADATA +24 -13
- {invenio_banners-3.2.0.dist-info → invenio_banners-4.1.0.dist-info}/RECORD +10 -10
- {invenio_banners-3.2.0.dist-info → invenio_banners-4.1.0.dist-info}/WHEEL +1 -1
- {invenio_banners-3.2.0.dist-info → invenio_banners-4.1.0.dist-info}/entry_points.txt +0 -1
- {invenio_banners-3.2.0.dist-info → invenio_banners-4.1.0.dist-info}/AUTHORS.rst +0 -0
- {invenio_banners-3.2.0.dist-info → invenio_banners-4.1.0.dist-info}/LICENSE +0 -0
- {invenio_banners-3.2.0.dist-info → invenio_banners-4.1.0.dist-info}/top_level.txt +0 -0
invenio_banners/__init__.py
CHANGED
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
under the terms of the MIT License; see LICENSE file for more details.
|
|
8
8
|
#}
|
|
9
9
|
|
|
10
|
-
{%- macro banner() -%}
|
|
10
|
+
{%- macro banner(ui_classes) -%}
|
|
11
11
|
{%- block banner %}
|
|
12
12
|
{%- set banners = get_active_banners() %}
|
|
13
|
+
{% if not ui_classes %}
|
|
14
|
+
{% set ui_classes = "top attached m-0" %}
|
|
15
|
+
{% endif %}
|
|
13
16
|
{% if banners %}
|
|
14
17
|
{% for banner in banners %}
|
|
15
|
-
<div class="{{ banner.category|style_banner_category }}">
|
|
18
|
+
<div class="ui {{ banner.category|style_banner_category }} message {{ ui_classes }} inv-banner" id="banner-{{ banner.id }}">
|
|
16
19
|
<div class="ui container">
|
|
17
20
|
{{ banner.message|safe }}
|
|
18
21
|
</div>
|
invenio_banners/utils.py
CHANGED
|
@@ -20,7 +20,7 @@ def get_active_banners_for_request():
|
|
|
20
20
|
|
|
21
21
|
def style_category(category):
|
|
22
22
|
"""Return predefined Semantic-UI classes for each banner category."""
|
|
23
|
-
style_class = "
|
|
23
|
+
style_class = "{}"
|
|
24
24
|
if category == "warning":
|
|
25
25
|
style_class = style_class.format("warning")
|
|
26
26
|
elif category == "other":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: invenio-banners
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.1.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
|
|
@@ -10,17 +10,20 @@ Keywords: Invenio Banners
|
|
|
10
10
|
Platform: any
|
|
11
11
|
Classifier: Development Status :: 1 - Planning
|
|
12
12
|
Requires-Python: >=3.7
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
License-File: AUTHORS.rst
|
|
15
|
+
Requires-Dist: invenio-i18n<4.0.0,>=3.0.0
|
|
16
|
+
Requires-Dist: invenio-administration<4.0.0,>=3.0.0
|
|
17
|
+
Provides-Extra: tests
|
|
18
|
+
Requires-Dist: pytest-black-ng>=0.4.0; extra == "tests"
|
|
19
|
+
Requires-Dist: pytest-invenio<4.0.0,>=3.0.0; extra == "tests"
|
|
20
|
+
Requires-Dist: jsonresolver>=0.3.2; extra == "tests"
|
|
21
|
+
Requires-Dist: invenio-app<3.0.0,>=2.0.0; extra == "tests"
|
|
22
|
+
Requires-Dist: sphinx>=4.5; extra == "tests"
|
|
15
23
|
Provides-Extra: opensearch1
|
|
16
|
-
Requires-Dist: invenio-search[opensearch1]
|
|
24
|
+
Requires-Dist: invenio-search[opensearch1]<4.0.0,>=3.0.0; extra == "opensearch1"
|
|
17
25
|
Provides-Extra: opensearch2
|
|
18
|
-
Requires-Dist: invenio-search[opensearch2]
|
|
19
|
-
Provides-Extra: tests
|
|
20
|
-
Requires-Dist: pytest-invenio <3.0.0,>=2.1.0 ; extra == 'tests'
|
|
21
|
-
Requires-Dist: invenio-app <2.0.0,>=1.3.4 ; extra == 'tests'
|
|
22
|
-
Requires-Dist: pytest-black >=0.3.0 ; extra == 'tests'
|
|
23
|
-
Requires-Dist: sphinx >=4.5 ; extra == 'tests'
|
|
26
|
+
Requires-Dist: invenio-search[opensearch2]<4.0.0,>=3.0.0; extra == "opensearch2"
|
|
24
27
|
|
|
25
28
|
..
|
|
26
29
|
Copyright (C) 2020 CERN.
|
|
@@ -54,6 +57,7 @@ https://invenio-banners.readthedocs.io/
|
|
|
54
57
|
|
|
55
58
|
..
|
|
56
59
|
Copyright (C) 2020-2024 CERN.
|
|
60
|
+
Copyright (C) 2024 Graz University of Technology.
|
|
57
61
|
|
|
58
62
|
Invenio-Banners is free software; you can redistribute it and/or modify
|
|
59
63
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -61,6 +65,15 @@ https://invenio-banners.readthedocs.io/
|
|
|
61
65
|
Changes
|
|
62
66
|
=======
|
|
63
67
|
|
|
68
|
+
Version v4.1.0 (released 2025-01-22)
|
|
69
|
+
|
|
70
|
+
- templates: pass ui classes through macro parameters
|
|
71
|
+
|
|
72
|
+
Version v4.0.0 (released 2024-12-10)
|
|
73
|
+
|
|
74
|
+
- setup: change to reusable workflows
|
|
75
|
+
- setup: bump major dependencies
|
|
76
|
+
|
|
64
77
|
Version v3.2.0 (released 2024-11-05)
|
|
65
78
|
|
|
66
79
|
- feat(administration): use html editor for message
|
|
@@ -106,5 +119,3 @@ Version 1.0.0a1 (release 2020-10-25)
|
|
|
106
119
|
------------------------------------
|
|
107
120
|
|
|
108
121
|
- Initial public release.
|
|
109
|
-
|
|
110
|
-
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
invenio_banners/__init__.py,sha256=
|
|
1
|
+
invenio_banners/__init__.py,sha256=YVdP_EScqfYBsWnJktuxq3WyIELzgCHDAxei2-kHT88,425
|
|
2
2
|
invenio_banners/config.py,sha256=xGHNLvXoJyQsJo7yKeOh-lDySTaX0bVH1mk7BMrE1NA,1299
|
|
3
3
|
invenio_banners/ext.py,sha256=rRIgDgZIyGhm2M8WHWApMPRcBVe3eHkaHzTOt-YH6aw,1836
|
|
4
4
|
invenio_banners/proxies.py,sha256=nfACfpSgfCHiixSy2cO4G9y_lHFQj6onOeBLifYY6IQ,638
|
|
5
|
-
invenio_banners/utils.py,sha256=
|
|
5
|
+
invenio_banners/utils.py,sha256=PmSJY-S5CQ58HSAUnNWJJqwYO206GqLLLVGCO6YzL10,854
|
|
6
6
|
invenio_banners/views.py,sha256=sya476lHzXnFERPK7LAgn21wzUVBywjhs5y56Lh7NtY,449
|
|
7
7
|
invenio_banners/administration/__init__.py,sha256=QtT7HabGpMsOlT6xlFp4RNalseEH7ugsdn532bkR4Tk,243
|
|
8
8
|
invenio_banners/administration/banners.py,sha256=ZlJgxiWxteQvhQa5_1_iq1FHWSG0bTm72fvTFcsQydg,5507
|
|
@@ -21,7 +21,7 @@ invenio_banners/services/permissions.py,sha256=EbC4oeFaBHCYTPnDMrtoS9Cgo4skhjz69
|
|
|
21
21
|
invenio_banners/services/results.py,sha256=sg2z1zPKD8mWgUigwqdFWJqdnA7wOtmf6yKfa3AeUek,3082
|
|
22
22
|
invenio_banners/services/schemas.py,sha256=rWh1WSQR4ps_Ii7RWd82FUMk4_aHbdwd5kYh5gCxlJU,1442
|
|
23
23
|
invenio_banners/services/service.py,sha256=7KdwwrmqvtBsmEschL-i_ydPsijH7RjzLzMFogrKYeQ,4770
|
|
24
|
-
invenio_banners/templates/semantic-ui/invenio_banners/banner.html,sha256=
|
|
24
|
+
invenio_banners/templates/semantic-ui/invenio_banners/banner.html,sha256=mOPfWsxRMIftoCyU82WeHlEhHFvy56BTF4wDJHpzX-o,811
|
|
25
25
|
invenio_banners/translations/messages.pot,sha256=SQpSVoZDsRHTihUdvEkq7HoNRwffdwhYPm2qITPRPYk,5090
|
|
26
26
|
invenio_banners/translations/af/LC_MESSAGES/messages.po,sha256=kS4YofCdd6b6NCX5QXXKBZ1tpnu8dFWEdgQWsYPrYAk,5070
|
|
27
27
|
invenio_banners/translations/ar/LC_MESSAGES/messages.po,sha256=qnp42420rDMGeqnxztFgBT-79vlRE39BHvuHdsxp4xI,6308
|
|
@@ -69,10 +69,10 @@ invenio_banners/translations/uk/LC_MESSAGES/messages.po,sha256=Z1ZM6O0bb8if1a82K
|
|
|
69
69
|
invenio_banners/translations/uk_UA/LC_MESSAGES/messages.po,sha256=4KNAaMpzBYXmTLcH4NtmLKWpCZKEI9CbjfEH9tfa52c,5308
|
|
70
70
|
invenio_banners/translations/zh_CN/LC_MESSAGES/messages.po,sha256=rBoibkyrfoi5WwZwI-C67fk_Gce7aGVg2595rJrrDi0,5265
|
|
71
71
|
invenio_banners/translations/zh_TW/LC_MESSAGES/messages.po,sha256=2rOl1mvYBlJhThTyyQphuCVPl2apcJMew-tGl6WBO8I,5199
|
|
72
|
-
invenio_banners-
|
|
73
|
-
invenio_banners-
|
|
74
|
-
invenio_banners-
|
|
75
|
-
invenio_banners-
|
|
76
|
-
invenio_banners-
|
|
77
|
-
invenio_banners-
|
|
78
|
-
invenio_banners-
|
|
72
|
+
invenio_banners-4.1.0.dist-info/AUTHORS.rst,sha256=fQsy2e1bLnwt_a89-kO6CwBwN7o58Ix9F9195b2iTJo,295
|
|
73
|
+
invenio_banners-4.1.0.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
|
|
74
|
+
invenio_banners-4.1.0.dist-info/METADATA,sha256=uSvk_iZ0DyM8aLVvXFPKY_hhJLr4umEL6vwEiDPIAoA,3875
|
|
75
|
+
invenio_banners-4.1.0.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
|
76
|
+
invenio_banners-4.1.0.dist-info/entry_points.txt,sha256=3p4FMVuj9AZ1QGm6YdcdhzP9k4xsPfsUG10Ykc3CpxI,719
|
|
77
|
+
invenio_banners-4.1.0.dist-info/top_level.txt,sha256=ENJP1dEZ93e4ImCi7AHaVooTUV-6fQnRJ106wHitg5g,16
|
|
78
|
+
invenio_banners-4.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|