events.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {% extends "layout.html" %}
  2. {% block content %}
  3. <h2>Events</h2>
  4. {% if events|length %}
  5. {% for event in events %}
  6. <div class="card mb-2">
  7. <div class="card-body">
  8. <h5 class="card-title">{{event.name}}</h5>
  9. <h6 class="card-subtitle mb-2 text-muted">{{event.startDate}}</h6>
  10. {% for key, val in event["data"].items() %}
  11. {% if "url" in key %}
  12. <a href="{{val}}" class="card-link mb-0">{{val}}</a>
  13. {% else %}
  14. <p class="card-text mb-0">{{key}}: {{val}}</p>
  15. {% endif %}
  16. {% endfor %}
  17. </div>
  18. </div>
  19. {% endfor %}
  20. {% else %}
  21. <div class="card mb-2">
  22. <div class="card-body">
  23. <p class="card-text mb-0">Derzeit sind keine Events geplant.</p>
  24. </div>
  25. </div>
  26. {% endif %}
  27. <p><small class="fst-italic">Vielen Dank an das Team von <a href="https://boudicca.events/">boudicca.events</a>! :)</small></p>
  28. {% endblock %}