invenio-banners 3.3.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 +15 -0
- invenio_banners/administration/__init__.py +8 -0
- invenio_banners/administration/banners.py +182 -0
- invenio_banners/alembic/5e02314da32e_create_invenio_banners_db_table.py +43 -0
- invenio_banners/alembic/e40d93d99040_create_invenio_banners_branch.py +27 -0
- invenio_banners/config.py +53 -0
- invenio_banners/ext.py +60 -0
- invenio_banners/proxies.py +19 -0
- invenio_banners/records/__init__.py +13 -0
- invenio_banners/records/models.py +143 -0
- invenio_banners/resources/__init__.py +16 -0
- invenio_banners/resources/config.py +54 -0
- invenio_banners/resources/errors.py +41 -0
- invenio_banners/resources/resource.py +107 -0
- invenio_banners/services/__init__.py +20 -0
- invenio_banners/services/config.py +85 -0
- invenio_banners/services/errors.py +21 -0
- invenio_banners/services/permissions.py +23 -0
- invenio_banners/services/results.py +124 -0
- invenio_banners/services/schemas.py +39 -0
- invenio_banners/services/service.py +156 -0
- invenio_banners/templates/semantic-ui/invenio_banners/banner.html +26 -0
- invenio_banners/translations/af/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/ar/LC_MESSAGES/messages.po +171 -0
- invenio_banners/translations/bg/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ca/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/cs/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/da/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/de/LC_MESSAGES/messages.po +166 -0
- invenio_banners/translations/de_AT/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/de_DE/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/el/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/en_AT/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/en_HU/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/es/LC_MESSAGES/messages.po +190 -0
- invenio_banners/translations/es_CU/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/es_MX/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/et/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/et_EE/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fa/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fa_IR/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fr/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/fr_CI/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fr_FR/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/gl/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/hi_IN/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/hr/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/hu/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/hu_HU/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/it/LC_MESSAGES/messages.po +166 -0
- invenio_banners/translations/ja/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ka/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/lt/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/messages.pot +165 -0
- invenio_banners/translations/ne/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/no/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/pl/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/pt/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ro/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ru/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/rw/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/sk/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/sv/LC_MESSAGES/messages.po +185 -0
- invenio_banners/translations/sv_SE/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/tr/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/uk/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/uk_UA/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/zh_CN/LC_MESSAGES/messages.po +166 -0
- invenio_banners/translations/zh_TW/LC_MESSAGES/messages.po +164 -0
- invenio_banners/utils.py +30 -0
- invenio_banners/views.py +14 -0
- invenio_banners-3.3.0.dist-info/AUTHORS.rst +12 -0
- invenio_banners-3.3.0.dist-info/LICENSE +21 -0
- invenio_banners-3.3.0.dist-info/METADATA +114 -0
- invenio_banners-3.3.0.dist-info/RECORD +78 -0
- invenio_banners-3.3.0.dist-info/WHEEL +6 -0
- invenio_banners-3.3.0.dist-info/entry_points.txt +20 -0
- invenio_banners-3.3.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Translations template for invenio-banners.
|
|
2
|
+
# Copyright (C) 2023 CERN
|
|
3
|
+
# This file is distributed under the same license as the invenio-banners
|
|
4
|
+
# project.
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
|
6
|
+
#
|
|
7
|
+
#, fuzzy
|
|
8
|
+
msgid ""
|
|
9
|
+
msgstr ""
|
|
10
|
+
"Project-Id-Version: invenio-banners 2.1.0\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
|
|
12
|
+
"POT-Creation-Date: 2023-06-30 11:25+0200\n"
|
|
13
|
+
"PO-Revision-Date: 2023-06-30 09:38+0000\n"
|
|
14
|
+
"Language-Team: Ukrainian (Ukraine) (https://app.transifex.com/inveniosoftware/teams/23537/uk_UA/)\n"
|
|
15
|
+
"MIME-Version: 1.0\n"
|
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
18
|
+
"Generated-By: Babel 2.12.1\n"
|
|
19
|
+
"Language: uk_UA\n"
|
|
20
|
+
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
|
21
|
+
|
|
22
|
+
#: invenio_banners/administration/banners.py:42
|
|
23
|
+
#: invenio_banners/administration/banners.py:96
|
|
24
|
+
#: invenio_banners/administration/banners.py:179
|
|
25
|
+
#: invenio_banners/administration/banners.py:236 invenio_banners/config.py:37
|
|
26
|
+
msgid "URL path"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
#: invenio_banners/config.py:41
|
|
30
|
+
msgid "Start DateTime"
|
|
31
|
+
msgstr ""
|
|
32
|
+
|
|
33
|
+
#: invenio_banners/config.py:45
|
|
34
|
+
msgid "End DateTime"
|
|
35
|
+
msgstr ""
|
|
36
|
+
|
|
37
|
+
#: invenio_banners/administration/banners.py:41
|
|
38
|
+
#: invenio_banners/administration/banners.py:123
|
|
39
|
+
#: invenio_banners/administration/banners.py:207
|
|
40
|
+
#: invenio_banners/administration/banners.py:238 invenio_banners/config.py:49
|
|
41
|
+
#: invenio_banners/services/config.py:60
|
|
42
|
+
msgid "Active"
|
|
43
|
+
msgstr ""
|
|
44
|
+
|
|
45
|
+
#: invenio_banners/administration/banners.py:37
|
|
46
|
+
msgid "Id"
|
|
47
|
+
msgstr ""
|
|
48
|
+
|
|
49
|
+
#: invenio_banners/administration/banners.py:38
|
|
50
|
+
msgid "Start time (UTC)"
|
|
51
|
+
msgstr ""
|
|
52
|
+
|
|
53
|
+
#: invenio_banners/administration/banners.py:39
|
|
54
|
+
msgid "End time (UTC)"
|
|
55
|
+
msgstr ""
|
|
56
|
+
|
|
57
|
+
#: invenio_banners/administration/banners.py:40
|
|
58
|
+
#: invenio_banners/administration/banners.py:88
|
|
59
|
+
#: invenio_banners/administration/banners.py:171
|
|
60
|
+
#: invenio_banners/administration/banners.py:235
|
|
61
|
+
msgid "Message"
|
|
62
|
+
msgstr ""
|
|
63
|
+
|
|
64
|
+
#: invenio_banners/administration/banners.py:43
|
|
65
|
+
#: invenio_banners/administration/banners.py:108
|
|
66
|
+
#: invenio_banners/administration/banners.py:191
|
|
67
|
+
#: invenio_banners/administration/banners.py:237
|
|
68
|
+
msgid "Category"
|
|
69
|
+
msgstr ""
|
|
70
|
+
|
|
71
|
+
#: invenio_banners/administration/banners.py:67
|
|
72
|
+
#: invenio_banners/administration/banners.py:150
|
|
73
|
+
#: invenio_banners/administration/banners.py:233
|
|
74
|
+
#: invenio_banners/services/config.py:52
|
|
75
|
+
msgid "Start time"
|
|
76
|
+
msgstr ""
|
|
77
|
+
|
|
78
|
+
#: invenio_banners/administration/banners.py:68
|
|
79
|
+
#: invenio_banners/administration/banners.py:151
|
|
80
|
+
msgid ""
|
|
81
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Set to current or future date/time to "
|
|
82
|
+
"delay the banner. Note: specify time in UTC time standard."
|
|
83
|
+
msgstr ""
|
|
84
|
+
|
|
85
|
+
#: invenio_banners/administration/banners.py:73
|
|
86
|
+
#: invenio_banners/administration/banners.py:84
|
|
87
|
+
#: invenio_banners/administration/banners.py:156
|
|
88
|
+
#: invenio_banners/administration/banners.py:167
|
|
89
|
+
msgid "YYYY-MM-DD hh:mm:ss"
|
|
90
|
+
msgstr ""
|
|
91
|
+
|
|
92
|
+
#: invenio_banners/administration/banners.py:77
|
|
93
|
+
#: invenio_banners/administration/banners.py:160
|
|
94
|
+
#: invenio_banners/administration/banners.py:234
|
|
95
|
+
#: invenio_banners/services/config.py:56
|
|
96
|
+
msgid "End time"
|
|
97
|
+
msgstr ""
|
|
98
|
+
|
|
99
|
+
#: invenio_banners/administration/banners.py:78
|
|
100
|
+
#: invenio_banners/administration/banners.py:161
|
|
101
|
+
msgid ""
|
|
102
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Date/time to make the banner inactive. "
|
|
103
|
+
"Empty value will make the banner active until manually disabled via the "
|
|
104
|
+
"active flag. Note: specify time in UTC time standard."
|
|
105
|
+
msgstr ""
|
|
106
|
+
|
|
107
|
+
#: invenio_banners/administration/banners.py:89
|
|
108
|
+
#: invenio_banners/administration/banners.py:172
|
|
109
|
+
msgid "Message to be displayed on the banner. HTML format is supported."
|
|
110
|
+
msgstr ""
|
|
111
|
+
|
|
112
|
+
#: invenio_banners/administration/banners.py:97
|
|
113
|
+
#: invenio_banners/administration/banners.py:180
|
|
114
|
+
msgid ""
|
|
115
|
+
"Enter the URL path (including the first /) to define in which part of the "
|
|
116
|
+
"site the message will be active. For example, if you enter `/records`, any "
|
|
117
|
+
"URL starting with `/records` will return an active banner (/records, "
|
|
118
|
+
"/records/1234, etc...). Empty value will make the banner active for any URL."
|
|
119
|
+
msgstr ""
|
|
120
|
+
|
|
121
|
+
#: invenio_banners/administration/banners.py:109
|
|
122
|
+
msgid ""
|
|
123
|
+
"Banner category. Info option displays the banner with information message in"
|
|
124
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
125
|
+
"all the rest types of massages in a gray color."
|
|
126
|
+
msgstr ""
|
|
127
|
+
|
|
128
|
+
#: invenio_banners/administration/banners.py:124
|
|
129
|
+
#: invenio_banners/administration/banners.py:208
|
|
130
|
+
msgid ""
|
|
131
|
+
"Tick it to activate the banner: banner will bedisplayed according to "
|
|
132
|
+
"start/end times. If not activated, start/end times will be ignored."
|
|
133
|
+
msgstr ""
|
|
134
|
+
|
|
135
|
+
#: invenio_banners/administration/banners.py:192
|
|
136
|
+
msgid ""
|
|
137
|
+
"Banner category. Info option displays the banner with information message in"
|
|
138
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
139
|
+
"all the rest types of messages in a gray color."
|
|
140
|
+
msgstr ""
|
|
141
|
+
|
|
142
|
+
#: invenio_banners/administration/banners.py:239
|
|
143
|
+
msgid "Created"
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
#: invenio_banners/administration/banners.py:240
|
|
147
|
+
msgid "Updated"
|
|
148
|
+
msgstr ""
|
|
149
|
+
|
|
150
|
+
#: invenio_banners/services/config.py:36
|
|
151
|
+
msgid "Ascending"
|
|
152
|
+
msgstr ""
|
|
153
|
+
|
|
154
|
+
#: invenio_banners/services/config.py:40
|
|
155
|
+
msgid "Descending"
|
|
156
|
+
msgstr ""
|
|
157
|
+
|
|
158
|
+
#: invenio_banners/services/config.py:48
|
|
159
|
+
msgid "Url path"
|
|
160
|
+
msgstr ""
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Translations template for invenio-banners.
|
|
2
|
+
# Copyright (C) 2023 CERN
|
|
3
|
+
# This file is distributed under the same license as the invenio-banners
|
|
4
|
+
# project.
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
|
6
|
+
#
|
|
7
|
+
# Translators:
|
|
8
|
+
# Tibor Simko <tibor.simko@cern.ch>, 2023
|
|
9
|
+
# Weizheng Lu, 2023
|
|
10
|
+
# Kalven Richie, 2023
|
|
11
|
+
#
|
|
12
|
+
#, fuzzy
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Project-Id-Version: invenio-banners 2.1.0\n"
|
|
16
|
+
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
|
|
17
|
+
"POT-Creation-Date: 2023-06-30 11:25+0200\n"
|
|
18
|
+
"PO-Revision-Date: 2023-06-30 09:38+0000\n"
|
|
19
|
+
"Last-Translator: Kalven Richie, 2023\n"
|
|
20
|
+
"Language-Team: Chinese (China) (https://app.transifex.com/inveniosoftware/teams/23537/zh_CN/)\n"
|
|
21
|
+
"MIME-Version: 1.0\n"
|
|
22
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
23
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
24
|
+
"Generated-By: Babel 2.12.1\n"
|
|
25
|
+
"Language: zh_CN\n"
|
|
26
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
27
|
+
|
|
28
|
+
#: invenio_banners/administration/banners.py:42
|
|
29
|
+
#: invenio_banners/administration/banners.py:96
|
|
30
|
+
#: invenio_banners/administration/banners.py:179
|
|
31
|
+
#: invenio_banners/administration/banners.py:236 invenio_banners/config.py:37
|
|
32
|
+
msgid "URL path"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
35
|
+
#: invenio_banners/config.py:41
|
|
36
|
+
msgid "Start DateTime"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
#: invenio_banners/config.py:45
|
|
40
|
+
msgid "End DateTime"
|
|
41
|
+
msgstr ""
|
|
42
|
+
|
|
43
|
+
#: invenio_banners/administration/banners.py:41
|
|
44
|
+
#: invenio_banners/administration/banners.py:123
|
|
45
|
+
#: invenio_banners/administration/banners.py:207
|
|
46
|
+
#: invenio_banners/administration/banners.py:238 invenio_banners/config.py:49
|
|
47
|
+
#: invenio_banners/services/config.py:60
|
|
48
|
+
msgid "Active"
|
|
49
|
+
msgstr "活跃的"
|
|
50
|
+
|
|
51
|
+
#: invenio_banners/administration/banners.py:37
|
|
52
|
+
msgid "Id"
|
|
53
|
+
msgstr "Id"
|
|
54
|
+
|
|
55
|
+
#: invenio_banners/administration/banners.py:38
|
|
56
|
+
msgid "Start time (UTC)"
|
|
57
|
+
msgstr ""
|
|
58
|
+
|
|
59
|
+
#: invenio_banners/administration/banners.py:39
|
|
60
|
+
msgid "End time (UTC)"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
#: invenio_banners/administration/banners.py:40
|
|
64
|
+
#: invenio_banners/administration/banners.py:88
|
|
65
|
+
#: invenio_banners/administration/banners.py:171
|
|
66
|
+
#: invenio_banners/administration/banners.py:235
|
|
67
|
+
msgid "Message"
|
|
68
|
+
msgstr "信息"
|
|
69
|
+
|
|
70
|
+
#: invenio_banners/administration/banners.py:43
|
|
71
|
+
#: invenio_banners/administration/banners.py:108
|
|
72
|
+
#: invenio_banners/administration/banners.py:191
|
|
73
|
+
#: invenio_banners/administration/banners.py:237
|
|
74
|
+
msgid "Category"
|
|
75
|
+
msgstr ""
|
|
76
|
+
|
|
77
|
+
#: invenio_banners/administration/banners.py:67
|
|
78
|
+
#: invenio_banners/administration/banners.py:150
|
|
79
|
+
#: invenio_banners/administration/banners.py:233
|
|
80
|
+
#: invenio_banners/services/config.py:52
|
|
81
|
+
msgid "Start time"
|
|
82
|
+
msgstr ""
|
|
83
|
+
|
|
84
|
+
#: invenio_banners/administration/banners.py:68
|
|
85
|
+
#: invenio_banners/administration/banners.py:151
|
|
86
|
+
msgid ""
|
|
87
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Set to current or future date/time to "
|
|
88
|
+
"delay the banner. Note: specify time in UTC time standard."
|
|
89
|
+
msgstr ""
|
|
90
|
+
|
|
91
|
+
#: invenio_banners/administration/banners.py:73
|
|
92
|
+
#: invenio_banners/administration/banners.py:84
|
|
93
|
+
#: invenio_banners/administration/banners.py:156
|
|
94
|
+
#: invenio_banners/administration/banners.py:167
|
|
95
|
+
msgid "YYYY-MM-DD hh:mm:ss"
|
|
96
|
+
msgstr ""
|
|
97
|
+
|
|
98
|
+
#: invenio_banners/administration/banners.py:77
|
|
99
|
+
#: invenio_banners/administration/banners.py:160
|
|
100
|
+
#: invenio_banners/administration/banners.py:234
|
|
101
|
+
#: invenio_banners/services/config.py:56
|
|
102
|
+
msgid "End time"
|
|
103
|
+
msgstr ""
|
|
104
|
+
|
|
105
|
+
#: invenio_banners/administration/banners.py:78
|
|
106
|
+
#: invenio_banners/administration/banners.py:161
|
|
107
|
+
msgid ""
|
|
108
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Date/time to make the banner inactive. "
|
|
109
|
+
"Empty value will make the banner active until manually disabled via the "
|
|
110
|
+
"active flag. Note: specify time in UTC time standard."
|
|
111
|
+
msgstr ""
|
|
112
|
+
|
|
113
|
+
#: invenio_banners/administration/banners.py:89
|
|
114
|
+
#: invenio_banners/administration/banners.py:172
|
|
115
|
+
msgid "Message to be displayed on the banner. HTML format is supported."
|
|
116
|
+
msgstr ""
|
|
117
|
+
|
|
118
|
+
#: invenio_banners/administration/banners.py:97
|
|
119
|
+
#: invenio_banners/administration/banners.py:180
|
|
120
|
+
msgid ""
|
|
121
|
+
"Enter the URL path (including the first /) to define in which part of the "
|
|
122
|
+
"site the message will be active. For example, if you enter `/records`, any "
|
|
123
|
+
"URL starting with `/records` will return an active banner (/records, "
|
|
124
|
+
"/records/1234, etc...). Empty value will make the banner active for any URL."
|
|
125
|
+
msgstr ""
|
|
126
|
+
|
|
127
|
+
#: invenio_banners/administration/banners.py:109
|
|
128
|
+
msgid ""
|
|
129
|
+
"Banner category. Info option displays the banner with information message in"
|
|
130
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
131
|
+
"all the rest types of massages in a gray color."
|
|
132
|
+
msgstr ""
|
|
133
|
+
|
|
134
|
+
#: invenio_banners/administration/banners.py:124
|
|
135
|
+
#: invenio_banners/administration/banners.py:208
|
|
136
|
+
msgid ""
|
|
137
|
+
"Tick it to activate the banner: banner will bedisplayed according to "
|
|
138
|
+
"start/end times. If not activated, start/end times will be ignored."
|
|
139
|
+
msgstr ""
|
|
140
|
+
|
|
141
|
+
#: invenio_banners/administration/banners.py:192
|
|
142
|
+
msgid ""
|
|
143
|
+
"Banner category. Info option displays the banner with information message in"
|
|
144
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
145
|
+
"all the rest types of messages in a gray color."
|
|
146
|
+
msgstr ""
|
|
147
|
+
|
|
148
|
+
#: invenio_banners/administration/banners.py:239
|
|
149
|
+
msgid "Created"
|
|
150
|
+
msgstr "创建于"
|
|
151
|
+
|
|
152
|
+
#: invenio_banners/administration/banners.py:240
|
|
153
|
+
msgid "Updated"
|
|
154
|
+
msgstr "已更新"
|
|
155
|
+
|
|
156
|
+
#: invenio_banners/services/config.py:36
|
|
157
|
+
msgid "Ascending"
|
|
158
|
+
msgstr "升序"
|
|
159
|
+
|
|
160
|
+
#: invenio_banners/services/config.py:40
|
|
161
|
+
msgid "Descending"
|
|
162
|
+
msgstr "降序"
|
|
163
|
+
|
|
164
|
+
#: invenio_banners/services/config.py:48
|
|
165
|
+
msgid "Url path"
|
|
166
|
+
msgstr ""
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# Translations template for invenio-banners.
|
|
2
|
+
# Copyright (C) 2023 CERN
|
|
3
|
+
# This file is distributed under the same license as the invenio-banners
|
|
4
|
+
# project.
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
|
6
|
+
#
|
|
7
|
+
# Translators:
|
|
8
|
+
# Tibor Simko <tibor.simko@cern.ch>, 2023
|
|
9
|
+
#
|
|
10
|
+
#, fuzzy
|
|
11
|
+
msgid ""
|
|
12
|
+
msgstr ""
|
|
13
|
+
"Project-Id-Version: invenio-banners 2.1.0\n"
|
|
14
|
+
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
|
|
15
|
+
"POT-Creation-Date: 2023-06-30 11:25+0200\n"
|
|
16
|
+
"PO-Revision-Date: 2023-06-30 09:38+0000\n"
|
|
17
|
+
"Last-Translator: Tibor Simko <tibor.simko@cern.ch>, 2023\n"
|
|
18
|
+
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/inveniosoftware/teams/23537/zh_TW/)\n"
|
|
19
|
+
"MIME-Version: 1.0\n"
|
|
20
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
21
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
22
|
+
"Generated-By: Babel 2.12.1\n"
|
|
23
|
+
"Language: zh_TW\n"
|
|
24
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
25
|
+
|
|
26
|
+
#: invenio_banners/administration/banners.py:42
|
|
27
|
+
#: invenio_banners/administration/banners.py:96
|
|
28
|
+
#: invenio_banners/administration/banners.py:179
|
|
29
|
+
#: invenio_banners/administration/banners.py:236 invenio_banners/config.py:37
|
|
30
|
+
msgid "URL path"
|
|
31
|
+
msgstr ""
|
|
32
|
+
|
|
33
|
+
#: invenio_banners/config.py:41
|
|
34
|
+
msgid "Start DateTime"
|
|
35
|
+
msgstr ""
|
|
36
|
+
|
|
37
|
+
#: invenio_banners/config.py:45
|
|
38
|
+
msgid "End DateTime"
|
|
39
|
+
msgstr ""
|
|
40
|
+
|
|
41
|
+
#: invenio_banners/administration/banners.py:41
|
|
42
|
+
#: invenio_banners/administration/banners.py:123
|
|
43
|
+
#: invenio_banners/administration/banners.py:207
|
|
44
|
+
#: invenio_banners/administration/banners.py:238 invenio_banners/config.py:49
|
|
45
|
+
#: invenio_banners/services/config.py:60
|
|
46
|
+
msgid "Active"
|
|
47
|
+
msgstr ""
|
|
48
|
+
|
|
49
|
+
#: invenio_banners/administration/banners.py:37
|
|
50
|
+
msgid "Id"
|
|
51
|
+
msgstr "Id"
|
|
52
|
+
|
|
53
|
+
#: invenio_banners/administration/banners.py:38
|
|
54
|
+
msgid "Start time (UTC)"
|
|
55
|
+
msgstr ""
|
|
56
|
+
|
|
57
|
+
#: invenio_banners/administration/banners.py:39
|
|
58
|
+
msgid "End time (UTC)"
|
|
59
|
+
msgstr ""
|
|
60
|
+
|
|
61
|
+
#: invenio_banners/administration/banners.py:40
|
|
62
|
+
#: invenio_banners/administration/banners.py:88
|
|
63
|
+
#: invenio_banners/administration/banners.py:171
|
|
64
|
+
#: invenio_banners/administration/banners.py:235
|
|
65
|
+
msgid "Message"
|
|
66
|
+
msgstr ""
|
|
67
|
+
|
|
68
|
+
#: invenio_banners/administration/banners.py:43
|
|
69
|
+
#: invenio_banners/administration/banners.py:108
|
|
70
|
+
#: invenio_banners/administration/banners.py:191
|
|
71
|
+
#: invenio_banners/administration/banners.py:237
|
|
72
|
+
msgid "Category"
|
|
73
|
+
msgstr ""
|
|
74
|
+
|
|
75
|
+
#: invenio_banners/administration/banners.py:67
|
|
76
|
+
#: invenio_banners/administration/banners.py:150
|
|
77
|
+
#: invenio_banners/administration/banners.py:233
|
|
78
|
+
#: invenio_banners/services/config.py:52
|
|
79
|
+
msgid "Start time"
|
|
80
|
+
msgstr ""
|
|
81
|
+
|
|
82
|
+
#: invenio_banners/administration/banners.py:68
|
|
83
|
+
#: invenio_banners/administration/banners.py:151
|
|
84
|
+
msgid ""
|
|
85
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Set to current or future date/time to "
|
|
86
|
+
"delay the banner. Note: specify time in UTC time standard."
|
|
87
|
+
msgstr ""
|
|
88
|
+
|
|
89
|
+
#: invenio_banners/administration/banners.py:73
|
|
90
|
+
#: invenio_banners/administration/banners.py:84
|
|
91
|
+
#: invenio_banners/administration/banners.py:156
|
|
92
|
+
#: invenio_banners/administration/banners.py:167
|
|
93
|
+
msgid "YYYY-MM-DD hh:mm:ss"
|
|
94
|
+
msgstr ""
|
|
95
|
+
|
|
96
|
+
#: invenio_banners/administration/banners.py:77
|
|
97
|
+
#: invenio_banners/administration/banners.py:160
|
|
98
|
+
#: invenio_banners/administration/banners.py:234
|
|
99
|
+
#: invenio_banners/services/config.py:56
|
|
100
|
+
msgid "End time"
|
|
101
|
+
msgstr ""
|
|
102
|
+
|
|
103
|
+
#: invenio_banners/administration/banners.py:78
|
|
104
|
+
#: invenio_banners/administration/banners.py:161
|
|
105
|
+
msgid ""
|
|
106
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Date/time to make the banner inactive. "
|
|
107
|
+
"Empty value will make the banner active until manually disabled via the "
|
|
108
|
+
"active flag. Note: specify time in UTC time standard."
|
|
109
|
+
msgstr ""
|
|
110
|
+
|
|
111
|
+
#: invenio_banners/administration/banners.py:89
|
|
112
|
+
#: invenio_banners/administration/banners.py:172
|
|
113
|
+
msgid "Message to be displayed on the banner. HTML format is supported."
|
|
114
|
+
msgstr ""
|
|
115
|
+
|
|
116
|
+
#: invenio_banners/administration/banners.py:97
|
|
117
|
+
#: invenio_banners/administration/banners.py:180
|
|
118
|
+
msgid ""
|
|
119
|
+
"Enter the URL path (including the first /) to define in which part of the "
|
|
120
|
+
"site the message will be active. For example, if you enter `/records`, any "
|
|
121
|
+
"URL starting with `/records` will return an active banner (/records, "
|
|
122
|
+
"/records/1234, etc...). Empty value will make the banner active for any URL."
|
|
123
|
+
msgstr ""
|
|
124
|
+
|
|
125
|
+
#: invenio_banners/administration/banners.py:109
|
|
126
|
+
msgid ""
|
|
127
|
+
"Banner category. Info option displays the banner with information message in"
|
|
128
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
129
|
+
"all the rest types of massages in a gray color."
|
|
130
|
+
msgstr ""
|
|
131
|
+
|
|
132
|
+
#: invenio_banners/administration/banners.py:124
|
|
133
|
+
#: invenio_banners/administration/banners.py:208
|
|
134
|
+
msgid ""
|
|
135
|
+
"Tick it to activate the banner: banner will bedisplayed according to "
|
|
136
|
+
"start/end times. If not activated, start/end times will be ignored."
|
|
137
|
+
msgstr ""
|
|
138
|
+
|
|
139
|
+
#: invenio_banners/administration/banners.py:192
|
|
140
|
+
msgid ""
|
|
141
|
+
"Banner category. Info option displays the banner with information message in"
|
|
142
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
143
|
+
"all the rest types of messages in a gray color."
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
#: invenio_banners/administration/banners.py:239
|
|
147
|
+
msgid "Created"
|
|
148
|
+
msgstr ""
|
|
149
|
+
|
|
150
|
+
#: invenio_banners/administration/banners.py:240
|
|
151
|
+
msgid "Updated"
|
|
152
|
+
msgstr ""
|
|
153
|
+
|
|
154
|
+
#: invenio_banners/services/config.py:36
|
|
155
|
+
msgid "Ascending"
|
|
156
|
+
msgstr ""
|
|
157
|
+
|
|
158
|
+
#: invenio_banners/services/config.py:40
|
|
159
|
+
msgid "Descending"
|
|
160
|
+
msgstr ""
|
|
161
|
+
|
|
162
|
+
#: invenio_banners/services/config.py:48
|
|
163
|
+
msgid "Url path"
|
|
164
|
+
msgstr ""
|
invenio_banners/utils.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2020-2023 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio-Banners is free software; you can redistribute it and/or modify it
|
|
6
|
+
# under the terms of the MIT License; see LICENSE file for more details.
|
|
7
|
+
|
|
8
|
+
"""Utils."""
|
|
9
|
+
|
|
10
|
+
from flask import request
|
|
11
|
+
|
|
12
|
+
from invenio_banners.services.config import BannerModel
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def get_active_banners_for_request():
|
|
16
|
+
"""Get active banner for the current URL path request."""
|
|
17
|
+
url_path = request.path
|
|
18
|
+
return BannerModel.get_active(url_path)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def style_category(category):
|
|
22
|
+
"""Return predefined Semantic-UI classes for each banner category."""
|
|
23
|
+
style_class = "{}"
|
|
24
|
+
if category == "warning":
|
|
25
|
+
style_class = style_class.format("warning")
|
|
26
|
+
elif category == "other":
|
|
27
|
+
style_class = style_class.format("grey")
|
|
28
|
+
else:
|
|
29
|
+
style_class = style_class.format("info")
|
|
30
|
+
return style_class
|
invenio_banners/views.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2020-2023 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio-Banners is free software; you can redistribute it and/or modify it
|
|
6
|
+
# under the terms of the MIT License; see LICENSE file for more details.
|
|
7
|
+
|
|
8
|
+
"""Invenio module providing management APIs for banners."""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def create_banners_api_bp(app):
|
|
12
|
+
"""Create the banners resource api blueprint."""
|
|
13
|
+
ext = app.extensions["invenio-banners"]
|
|
14
|
+
return ext.banners_resource.as_blueprint()
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
..
|
|
2
|
+
Copyright (C) 2020 CERN.
|
|
3
|
+
|
|
4
|
+
Invenio-Banners is free software; you can redistribute it and/or modify
|
|
5
|
+
it under the terms of the MIT License; see LICENSE file for more details.
|
|
6
|
+
|
|
7
|
+
Authors
|
|
8
|
+
=======
|
|
9
|
+
|
|
10
|
+
Create and show banners with useful messages to users.
|
|
11
|
+
|
|
12
|
+
- CERN <info@inveniosoftware.org>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2020 CERN.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: invenio-banners
|
|
3
|
+
Version: 3.3.0
|
|
4
|
+
Summary: Invenio-Banners is a module used to create and show banners with useful messages to users.
|
|
5
|
+
Home-page: https://github.com/inveniosoftware/invenio-banners
|
|
6
|
+
Author: CERN
|
|
7
|
+
Author-email: info@inveniosoftware.org
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: Invenio Banners
|
|
10
|
+
Platform: any
|
|
11
|
+
Classifier: Development Status :: 1 - Planning
|
|
12
|
+
Requires-Python: >=3.7
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
License-File: AUTHORS.rst
|
|
15
|
+
Requires-Dist: invenio-i18n<3.0.0,>=2.0.0
|
|
16
|
+
Requires-Dist: invenio-administration<3.0.0,>=2.0.0
|
|
17
|
+
Provides-Extra: tests
|
|
18
|
+
Requires-Dist: pytest-invenio<3.0.0,>=2.1.0; extra == "tests"
|
|
19
|
+
Requires-Dist: invenio-app<2.0.0,>=1.3.4; extra == "tests"
|
|
20
|
+
Requires-Dist: pytest-black>=0.3.0; extra == "tests"
|
|
21
|
+
Requires-Dist: sphinx>=4.5; extra == "tests"
|
|
22
|
+
Provides-Extra: opensearch1
|
|
23
|
+
Requires-Dist: invenio-search[opensearch1]<3.0.0,>=2.1.0; extra == "opensearch1"
|
|
24
|
+
Provides-Extra: opensearch2
|
|
25
|
+
Requires-Dist: invenio-search[opensearch2]<3.0.0,>=2.1.0; extra == "opensearch2"
|
|
26
|
+
|
|
27
|
+
..
|
|
28
|
+
Copyright (C) 2020 CERN.
|
|
29
|
+
|
|
30
|
+
Invenio-Banners is free software; you can redistribute it and/or modify
|
|
31
|
+
it under the terms of the MIT License; see LICENSE file for more details.
|
|
32
|
+
|
|
33
|
+
=================
|
|
34
|
+
Invenio-Banners
|
|
35
|
+
=================
|
|
36
|
+
|
|
37
|
+
.. image:: https://img.shields.io/travis/inveniosoftware/invenio-banners.svg
|
|
38
|
+
:target: https://travis-ci.org/inveniosoftware/invenio-banners
|
|
39
|
+
|
|
40
|
+
.. image:: https://img.shields.io/coveralls/inveniosoftware/invenio-banners.svg
|
|
41
|
+
:target: https://coveralls.io/r/inveniosoftware/invenio-banners
|
|
42
|
+
|
|
43
|
+
.. image:: https://img.shields.io/github/tag/inveniosoftware/invenio-banners.svg
|
|
44
|
+
:target: https://github.com/inveniosoftware/invenio-banners/releases
|
|
45
|
+
|
|
46
|
+
.. image:: https://img.shields.io/pypi/dm/invenio-banners.svg
|
|
47
|
+
:target: https://pypi.python.org/pypi/invenio-banners
|
|
48
|
+
|
|
49
|
+
.. image:: https://img.shields.io/github/license/inveniosoftware/invenio-banners.svg
|
|
50
|
+
:target: https://github.com/inveniosoftware/invenio-banners/blob/master/LICENSE
|
|
51
|
+
|
|
52
|
+
Create and show banners with useful messages to users.
|
|
53
|
+
|
|
54
|
+
Further documentation is available on
|
|
55
|
+
https://invenio-banners.readthedocs.io/
|
|
56
|
+
|
|
57
|
+
..
|
|
58
|
+
Copyright (C) 2020-2024 CERN.
|
|
59
|
+
|
|
60
|
+
Invenio-Banners is free software; you can redistribute it and/or modify
|
|
61
|
+
it under the terms of the MIT License; see LICENSE file for more details.
|
|
62
|
+
|
|
63
|
+
Changes
|
|
64
|
+
=======
|
|
65
|
+
|
|
66
|
+
Version v3.3.0 (released 2025-01-22)
|
|
67
|
+
|
|
68
|
+
- templates: pass ui classes through macro parameters
|
|
69
|
+
|
|
70
|
+
Version v3.2.0 (released 2024-11-05)
|
|
71
|
+
|
|
72
|
+
- feat(administration): use html editor for message
|
|
73
|
+
- global: change the code to be compatible with sqlalchemy >= 2.0
|
|
74
|
+
- global: add compatibility layer to move to flask >= 3.0
|
|
75
|
+
|
|
76
|
+
Version v3.1.0 (released 2024-08-07)
|
|
77
|
+
|
|
78
|
+
- http headers: use and adjust vnd.inveniordm.v1+json http accept header
|
|
79
|
+
|
|
80
|
+
Version 3.0.2 (released 2024-07-17)
|
|
81
|
+
|
|
82
|
+
- errors: implement REST validation error for banner loader
|
|
83
|
+
|
|
84
|
+
Version 3.0.1 (released 2024-02-21)
|
|
85
|
+
|
|
86
|
+
- Moved admin menu item for banners to site administration category
|
|
87
|
+
|
|
88
|
+
Version 3.0.0 (released 2024-01-31)
|
|
89
|
+
|
|
90
|
+
- installation: bump invenio-administration
|
|
91
|
+
|
|
92
|
+
Version 2.1.1 (released 2023-07-24)
|
|
93
|
+
|
|
94
|
+
- ui: remove bottom margin
|
|
95
|
+
|
|
96
|
+
Version 2.1.0 (released 2023-03-02)
|
|
97
|
+
|
|
98
|
+
- remove deprecated flask-babelex imports
|
|
99
|
+
- install invenio-i18n explicitly
|
|
100
|
+
|
|
101
|
+
Version 2.0.0 (released 2023-02-15)
|
|
102
|
+
|
|
103
|
+
- global: refactor into resource/service pattern
|
|
104
|
+
- global: implement CRUD operations
|
|
105
|
+
- global: implement best practices for packaging (declarative cfg), code
|
|
106
|
+
linting (black) and testing
|
|
107
|
+
- search: improve banners search by query params
|
|
108
|
+
- administration: integrate banners view module
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
Version 1.0.0a1 (release 2020-10-25)
|
|
112
|
+
------------------------------------
|
|
113
|
+
|
|
114
|
+
- Initial public release.
|