events.html 657 B

1234567891011121314151617181920212223242526
  1. {% extends "layout.html" %}
  2. {% block content %}
  3. <h2>Events</h2>
  4. {% for event in events %}
  5. <div class="card mb-2">
  6. <div class="card-body">
  7. <h5 class="card-title">{{event.name}}</h5>
  8. <h6 class="card-subtitle mb-2 text-muted">{{event.startDate}}</h6>
  9. {% for key, val in event["data"].items() %}
  10. {% if "url" in key %}
  11. <a href="{{val}}" class="card-link mb-0">{{val}}</a>
  12. {% else %}
  13. <p class="card-text mb-0">{{key}}: {{val}}</p>
  14. {% endif %}
  15. {% endfor %}
  16. </div>
  17. </div>
  18. {% endfor %}
  19. {% endblock %}