Skip to content

Commit 0da9c82

Browse files
authored
Merge branch 'main' into dependabot/pip/pillow-9.3.0
2 parents 262b7eb + 4de9727 commit 0da9c82

File tree

27 files changed

+158
-47
lines changed

27 files changed

+158
-47
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
host: pythoncanarias.es
1717
username: ${{ secrets.PRODUCTION_SSH_USERNAME }}
1818
key: ${{ secrets.PRODUCTION_SSH_KEY }}
19-
script: source ~/.virtualenvs/web/bin/activate && cd ~/web && ./deploy.sh
19+
script: source ~/.pyenv/versions/pycanweb/bin/activate && cd ~/web && ./deploy.sh

__init__.py

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by Django 3.2.25 on 2025-02-17 08:43
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('about', '0004_auto_20220510_2236'),
10+
]
11+
12+
operations = [
13+
migrations.AlterModelOptions(
14+
name='ally',
15+
options={'ordering': ['name'], 'verbose_name': 'Aliado', 'verbose_name_plural': 'Aliados'},
16+
),
17+
]

apps/about/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def __str__(self):
1616

1717
class Meta:
1818
ordering = ['name']
19+
verbose_name = 'Aliado'
20+
verbose_name_plural = 'Aliados'
1921

2022

2123
class FAQItem(models.Model):

apps/about/templates/about/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
Asociación cultural {{ organization.name }}<br>
5151
CIF {{ organization.cif }}<br>
5252
{{ organization.address }}<br>
53-
{{ organization.postal_code }} {{ organization.city }}
53+
{{ organization.postal_code }} {{ organization.city }}<br>
54+
{{ organization.phone }}
5455
</p>
5556

5657
<p>

apps/certificates/management/commands/create_certificate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from django.core.management.base import BaseCommand
44

5-
from certificates.utils import create_certificate
6-
from tickets.models import Ticket
5+
from apps.certificates.utils import create_certificate
6+
from apps.tickets.models import Ticket
77

88

99
class Command(BaseCommand):

apps/commons/context_processors.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22
import os
33

4+
from django.utils import timezone
45
from django.conf import settings
56

67
from apps.organizations.models import Organization
@@ -22,3 +23,19 @@ def glob(request):
2223

2324
def main_organization_data(request):
2425
return dict(organization=Organization.load_main_organization())
26+
27+
28+
def global_data(request):
29+
"""Añade al contexto datos de uso general.
30+
31+
Agrega los datos de:
32+
33+
- La fecha actual
34+
- El valor DEBUG definido en el `settings.py`.
35+
"""
36+
now = timezone.now()
37+
hoy = now.date()
38+
return {
39+
'current_date': hoy,
40+
'DEBUG': settings.DEBUG,
41+
}

apps/commons/templates/base.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858
{% include "footer.html" %}
5959

6060
<script src="{{ assets|get_asset_key:'commons/custom.min.js' }}"></script>
61-
{% block js %}{% endblock %}
61+
{% block js %}
62+
{% if current_date.month == 12 and current_date.day >= 21 and current_date.day <= 31 %}
63+
<script src="https://app.embed.im/snow.js" defer></script>
64+
{% endif %}
65+
{% endblock %}
6266

6367
</body>
6468
</html>

apps/commons/templates/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ <h2 class="subtitle"><i class="fas fa-copyright"></i> {{ organization.name }}</h
2828
<li>{{ organization.rest_address }}</li>
2929
{% endif %}
3030
<li>{{ organization.postal_code }}, {{ organization.city }}</li>
31+
<li>{{ organization.phone }}</li>
3132
<li><a href="mailto:{{ organization.email }}">{{ organization.email }}</a></li>
3233
<li><a href="{% url 'about:index' %}">Sobre la asociación</a></li>
3334
</ul>

apps/events/templates/events/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
{% endblock style %}
1616

1717
{% block js %}
18+
{{ block.super }}
1819
<script src="{{ assets|get_asset_key:'events/custom.min.js' }}"></script>
1920

2021
{% leaflet_js %}

0 commit comments

Comments
 (0)