Skip to content

Commit 2237a9a

Browse files
committed
Upgrade ckan
1 parent 3c957ea commit 2237a9a

File tree

3 files changed

+28
-31
lines changed

3 files changed

+28
-31
lines changed

ansible/roles/ckan-install-patches/files/patches/replace_btn-default_with_btn-secondary.patch

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,19 @@ index 4a4f78fe2..f56f80ef9 100644
6060
].join('\n')
6161
};
6262
diff --git a/ckan/templates/development/primer.html b/ckan/templates/development/primer.html
63-
index fe4ddc8d5..1c2d77981 100644
63+
index 10c22275a..431540212 100644
6464
--- a/ckan/templates/development/primer.html
6565
+++ b/ckan/templates/development/primer.html
66-
@@ -31,7 +31,7 @@
66+
@@ -30,7 +30,7 @@
67+
<div class="module-content">
6768
<div class="input-group input-group-lg search-giant">
6869
<input type="text" class="search form-control" name="q" value="" autocomplete="off" placeholder="Search something...">
69-
<span class="input-group-btn">
70-
- <button class="btn btn-default" type="submit">
71-
+ <button class="btn btn-secondary" type="submit">
72-
<i class="fa fa-search"></i>
73-
<span class="sr-only">Search</span>
74-
</button>
70+
- <button class="btn btn-default" type="submit">
71+
+ <button class="btn btn-secondary" type="submit">
72+
<i class="fa fa-search"></i>
73+
<span class="sr-only">Search</span>
74+
</button>
75+
7576
diff --git a/ckan/templates/development/snippets/actions.html b/ckan/templates/development/snippets/actions.html
7677
index fe9519c86..015c74bc8 100644
7778
--- a/ckan/templates/development/snippets/actions.html
@@ -275,7 +276,7 @@ index af1a47fc8..1c65cd4c5 100644
275276

276277
{% block content_action %}
277278
{% if h.check_access('package_update', {'id':pkg.id }) %}
278-
- {% link_for _('Manage'), named_route=pkg.type ~ '.edit', id=pkg.name, class_='btn btn-light', icon='wrench' %}
279+
- {% link_for _('Manage'), named_route=pkg.type ~ '.edit', id=pkg.name, class_='btn btn-default', icon='wrench' %}
279280
+ {% link_for _('Manage'), named_route=pkg.type ~ '.edit', id=pkg.name, class_='btn btn-secondary', icon='wrench' %}
280281
{% endif %}
281282
{% endblock %}
@@ -386,7 +387,7 @@ index 8b8a0c6f9..d96b6f06b 100644
386387
<li class="nav-item d-flex justify-content-between position-relative">
387388
<a class="flex-fill" href="{{ url }}" title="{{ h.resource_display_name(resource) }}">{{ h.resource_display_name(resource)|truncate(25) }}</a>
388389
<div class="dropdown position-absolute end-0 me-2">
389-
- <button class="btn btn-light btn-sm dropdown-toggle" type="button" id="dropdownRes{{ loop.index }}" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-wrench"></i></button>
390+
- <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="dropdownRes{{ loop.index }}" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-wrench"></i></button>
390391
+ <button class="btn btn-secondary btn-sm dropdown-toggle" type="button" id="dropdownRes{{ loop.index }}" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-wrench"></i></button>
391392
<ul class="dropdown-menu" aria-labelledby="dropdownRes{{ loop.index }}">
392393
<li>{% link_for _('Edit resource'), named_route=pkg.type ~ '_resource.edit', id=pkg.name, resource_id=resource.id, class_='dropdown-item', icon='pencil' %}</li>
@@ -395,7 +396,7 @@ index 8b8a0c6f9..d96b6f06b 100644
395396

396397
{% if can_edit and not is_activity_archive %}
397398
<div class="module-content">
398-
- {% link_for _('Add new resource'), named_route=pkg.type ~ '_resource.new', id=pkg.name, class_='btn btn-light btn-sm', icon='plus' %}
399+
- {% link_for _('Add new resource'), named_route=pkg.type ~ '_resource.new', id=pkg.name, class_='btn btn-default btn-sm', icon='plus' %}
399400
+ {% link_for _('Add new resource'), named_route=pkg.type ~ '_resource.new', id=pkg.name, class_='btn btn-secondary btn-sm', icon='plus' %}
400401
</div>
401402
{% endif %}
@@ -430,19 +431,19 @@ index 16c387754..591b95133 100644
430431

431432

432433
diff --git a/ckan/templates/snippets/search_form.html b/ckan/templates/snippets/search_form.html
433-
index b77f2b990..bca653755 100644
434+
index 3bdd08f9e..f2d037750 100644
434435
--- a/ckan/templates/snippets/search_form.html
435436
+++ b/ckan/templates/snippets/search_form.html
436-
@@ -13,7 +13,7 @@
437+
@@ -12,7 +12,7 @@
438+
<div class="input-group search-input-group">
437439
<input aria-label="{% block header_site_search_label %}{{ placeholder }}{% endblock %}" id="field-giant-search" type="text" class="form-control input-lg" name="q" value="{{ query }}" autocomplete="off" placeholder="{{ placeholder }}">
438440
{% block search_input_button %}
439-
<span class="input-group-btn">
440-
- <button class="btn btn-default btn-lg" type="submit" value="search" aria-label="{{_('Submit')}}">
441-
+ <button class="btn btn-secondary btn-lg" type="submit" value="search" aria-label="{{_('Submit')}}">
442-
<i class="fa fa-search"></i>
443-
</button>
444-
</span>
445-
@@ -39,7 +39,7 @@
441+
- <button class="btn btn-default btn-lg" type="submit" value="search" aria-label="{{_('Submit')}}">
442+
+ <button class="btn btn-secondary btn-lg" type="submit" value="search" aria-label="{{_('Submit')}}">
443+
<i class="fa fa-search"></i>
444+
</button>
445+
{% endblock %}
446+
@@ -37,7 +37,7 @@
446447
{% endfor %}
447448
</select>
448449
{% block search_sortby_button %}
@@ -451,7 +452,7 @@ index b77f2b990..bca653755 100644
451452
{% endblock %}
452453
</div>
453454
{% endif %}
454-
@@ -73,7 +73,7 @@
455+
@@ -71,7 +71,7 @@
455456
{% endfor %}
456457
{% endfor %}
457458
</p>

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ckan[requirements]==2.11.2
1+
ckan[requirements]==2.11.3

requirements.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile requirements.in
66
#
77
alembic==1.13.2
88
# via ckan
99
async-timeout==4.0.3
10-
# via
11-
# ckan
12-
# redis
10+
# via ckan
1311
babel==2.15.0
1412
# via
1513
# ckan
@@ -32,7 +30,7 @@ charset-normalizer==3.3.2
3230
# via
3331
# ckan
3432
# requests
35-
ckan[requirements]==2.11.2
33+
ckan[requirements]==2.11.3
3634
# via -r requirements.in
3735
click==8.1.7
3836
# via
@@ -73,7 +71,7 @@ itsdangerous==2.2.0
7371
# ckan
7472
# flask
7573
# flask-wtf
76-
jinja2==3.1.5
74+
jinja2==3.1.6
7775
# via
7876
# ckan
7977
# flask
@@ -161,9 +159,7 @@ sqlalchemy2-stubs==0.0.2a38
161159
sqlparse==0.5.0
162160
# via ckan
163161
tomli==2.0.1
164-
# via
165-
# ckan
166-
# mypy
162+
# via ckan
167163
typing-extensions==4.12.2
168164
# via
169165
# alembic

0 commit comments

Comments
 (0)