invenio-banners 4.0.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-4.0.0.dist-info → invenio_banners-4.1.0.dist-info}/METADATA +6 -2
- {invenio_banners-4.0.0.dist-info → invenio_banners-4.1.0.dist-info}/RECORD +10 -10
- {invenio_banners-4.0.0.dist-info → invenio_banners-4.1.0.dist-info}/WHEEL +1 -1
- {invenio_banners-4.0.0.dist-info → invenio_banners-4.1.0.dist-info}/AUTHORS.rst +0 -0
- {invenio_banners-4.0.0.dist-info → invenio_banners-4.1.0.dist-info}/LICENSE +0 -0
- {invenio_banners-4.0.0.dist-info → invenio_banners-4.1.0.dist-info}/entry_points.txt +0 -0
- {invenio_banners-4.0.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: 4.
|
|
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
|
|
@@ -65,6 +65,10 @@ https://invenio-banners.readthedocs.io/
|
|
|
65
65
|
Changes
|
|
66
66
|
=======
|
|
67
67
|
|
|
68
|
+
Version v4.1.0 (released 2025-01-22)
|
|
69
|
+
|
|
70
|
+
- templates: pass ui classes through macro parameters
|
|
71
|
+
|
|
68
72
|
Version v4.0.0 (released 2024-12-10)
|
|
69
73
|
|
|
70
74
|
- setup: change to reusable workflows
|
|
@@ -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-4.
|
|
73
|
-
invenio_banners-4.
|
|
74
|
-
invenio_banners-4.
|
|
75
|
-
invenio_banners-4.
|
|
76
|
-
invenio_banners-4.
|
|
77
|
-
invenio_banners-4.
|
|
78
|
-
invenio_banners-4.
|
|
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
|
|
File without changes
|