Skip to content

Commit 3b5658b

Browse files
add pre-release bugfixes and enhancements (#34)
1 parent a8c6b0b commit 3b5658b

File tree

16 files changed

+121
-73
lines changed

16 files changed

+121
-73
lines changed
3.34 KB
Loading

adhocracy-plus/assets/images/logo.svg

Lines changed: 1 addition & 37 deletions
Loading

adhocracy-plus/config/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
}
443443

444444
# Wagtail
445-
WAGTAIL_SITE_NAME = "adhocracy+"
445+
WAGTAIL_SITE_NAME = "ROOTS Beteiligung"
446446
WAGTAILIMAGES_IMAGE_MODEL = "a4_candy_cms_images.CustomImage"
447447
WAGTAILDOCS_MAX_FILE_SIZE = 20 * 1024 * 1024 # 20MB
448448

adhocracy-plus/templates/a4dashboard/communication_form_base.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,17 @@
2323
{% translate "Social Media" %}
2424
</a>
2525
</li>
26+
<li class="dashboard-nav__page">
27+
<a href="{% url 'a4dashboard:qr-create' organisation_slug=view.organisation.slug %}"
28+
class="dashboard-nav__item dashboard-nav__item--interactive {% if request.resolver_match.url_name == 'qr-create' %}is-active{% endif %}">
29+
{% translate "QR Codes erstellen" %}
30+
</a>
31+
</li>
2632
</ul>
2733
</div>
2834
</nav>
29-
30-
3135
<div class="col-md-9">
32-
{% block communication_form %}{% endblock %}
36+
{% block communication_form %}{% endblock communication_form %}
3337
</div>
3438
</div>
35-
{% endblock %}
39+
{% endblock dashboard_content %}

adhocracy-plus/templates/email_base.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@
1111
style="width: 100%; max-width: 600px; margin: auto;">
1212
<tr>
1313
<td style="padding: 0px; position: relative; top: -4.5em;" align="center">
14-
{% if organisation and organisation.logo %}
15-
<div style="width: 100px; height: 100px; box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.08); background-color: #ffffff;">
16-
<img src="cid:organisation_logo" height="80" width="80" alt="{{ organisation.name }} logo" style="margin: 10px;" />
17-
</div>
18-
{% else %}
19-
<div style="width: 150px; height: 100px; box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.08); background-color: #ffffff;">
20-
<img src="cid:logo" height="80" alt="adhocracy-plus logo" style="margin: 10px;" />
21-
</div>
22-
{% endif %}
14+
<div style="width: 150px; height: 100px; box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.08); background-color: #ffffff;">
15+
<img src="cid:logo" height="80" alt="ROOTS logo" style="margin: 10px;" />
16+
</div>
2317
</td>
2418
</tr>
2519
<tr>
@@ -90,8 +84,7 @@ <h3 style="color: #818181;">
9084
<td style="color: #818181; font-size: small; padding-top: 20px; padding-left: 5px; padding-right: 5px;">
9185
{% block reason %}{% endblock %}
9286
<p>
93-
{% blocktranslate with platformname=settings.a4_candy_cms_settings.OrganisationSettings.platform_name %}{{ platformname }} is a participation platform operated by{% endblocktranslate %}<br />
94-
Liquid Democracy e.V., Am Sudhaus 2, D-12053 Berlin
87+
ROOTS-Beteiligung ist eine Beteiligungsplattform für Non-Profit Organisationen, die im Rahmen des <a href="https://kmi-netzwerk.org/kmi-roots/">KMI/ROOTS</a> Projektes entstanden ist und von Liquid Democracy e.V. umgesetzt wird.
9588
</p>
9689
</td>
9790
</tr>

adhocracy-plus/templates/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<nav class="navi p-0">
3232
<ul class="navi__list mb-2 d-sm-flex flex-wrap">
3333
<li class="navi__item footer__link">
34-
2020 Liquid Democracy
34+
2025 Liquid Democracy
3535
</li>
3636
{% if pages.imprint %}
3737
<li class="navi__item footer__link">
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 4.2.18 on 2025-05-21 13:35
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("a4_candy_cms_settings", "0007_importantpages_registration"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="organisationsettings",
15+
name="platform_name",
16+
field=models.CharField(
17+
default="ROOTS Beteiligung",
18+
help_text="This name appears in the footer of all pages and e-mails as well as in the tab of the browser.",
19+
max_length=20,
20+
verbose_name="Platform name",
21+
),
22+
),
23+
]

apps/cms/settings/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ImportantPages(BaseSiteSetting):
137137
class OrganisationSettings(BaseSiteSetting):
138138
platform_name = models.CharField(
139139
max_length=20,
140-
default="adhocracy+",
140+
default="ROOTS Beteiligung",
141141
verbose_name="Platform name",
142142
help_text=(
143143
"This name appears in the footer of all pages and e-mails "

apps/dashboard/urls.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
organisation_views.DashboardCommunicationContentCreateView.as_view(),
5959
name="communication-content-create",
6060
),
61+
path(
62+
"communication/content/qr-codes-create/",
63+
organisation_views.DashboardCommunicationQRCreateView.as_view(),
64+
name="qr-create",
65+
),
6166
]
6267

6368
# a4 dashboard urls without organisation slug
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by Django 4.2.18 on 2025-05-20 15:06
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("a4_candy_learning_nuggets", "0004_alter_learningnuggetpage_content"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="learningcategory",
15+
name="permission_level",
16+
field=models.CharField(
17+
choices=[
18+
("participant", "Teilnehmer"),
19+
("initiator", "Initiator"),
20+
("moderator", "Moderator"),
21+
],
22+
default="participant",
23+
max_length=50,
24+
),
25+
),
26+
]

0 commit comments

Comments
 (0)