Skip to content

Commit

Permalink
bump django + better display when no church or no confession
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennecallies committed Oct 11, 2024
1 parent 1dcf720 commit f72f787
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions home/templates/includes/website_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,18 @@ <h3 class="col-md-4 text-md-end">
</ul>
<div id="tab-schedules-{{ website.uuid }}">
{% with church_schedules_list=website|get_church_schedules_list %}
{% for church_event in church_schedules_list.get_church_events %}
<p>{{ church_event.church.name }} : {% display_event church_event.event %}</p>
{% endfor %}
{% with church_events=church_schedules_list.get_church_events %}
{% if church_events %}
{% for church_event in church_events %}
<p>
{% if church_event.church %}{{ church_event.church.name }} : {% endif %}
{% display_event church_event.event %}
</p>
{% endfor %}
{% else %}
Pas de prochaines dates
{% endif %}
{% endwith %}
{% endwith %}
</div>
<div id="tab-sources-{{ website.uuid }}">
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Used by django
Django==5.0.8
Django==5.0.9
gunicorn==22.0.0
python-dotenv==1.0.0
whitenoise==6.6.0
Expand Down

0 comments on commit f72f787

Please sign in to comment.