agenda/templates/conference_list.html

56 lines
1.4 KiB
HTML
Raw Normal View History

2023-11-21 19:47:37 +00:00
{% extends "base.html" %}
{% block style %}
<style>
.grid-container {
display: grid;
grid-template-columns: repeat(6, auto); /* 7 columns for each piece of information */
gap: 10px;
justify-content: start;
}
.grid-item {
/* Additional styling for grid items can go here */
}
</style>
{% endblock %}
{% block content %}
<div class="container-fluid mt-2">
<h1>Conferences</h1>
<p>
<a href="{{ url_for("index") }}">&larr; back to agenda</a>
|
<a href="{{ url_for("travel_list") }}">travel</a>
|
<strong>conference</strong>
</p>
2023-11-21 19:47:37 +00:00
<div class="grid-container">
{% for item in item_list %}
2023-12-04 21:53:33 +00:00
{% if item == "today" %}
{% set bg="bg-warning-subtle" %}
<div class="grid-item text-end {{ bg }}">{{ today.strftime("%a, %d %b %Y") }}</div>
<div class="{{ bg }}"></div>
<div class="{{ bg }}">today</div>
<div class="{{ bg }}"></div>
<div class="{{ bg }}"></div>
<div class="{{ bg }}"></div>
{% else %}
2023-11-21 19:47:37 +00:00
<div class="grid-item text-end">{{ item.start.strftime("%a, %d %b %Y") }}</div>
<div class="grid-item text-end">{{ item.end.strftime("%a, %d %b") }}</div>
<div class="grid-item">{{ item.name }}</div>
<div class="grid-item">{{ item.topic }}</div>
<div class="grid-item">{{ item.location }}</div>
<div class="grid-item"><a href="{{ item.url }}">{{ item.url }}</a></div>
2023-12-04 21:53:33 +00:00
{% endif %}
2023-11-21 19:47:37 +00:00
{% endfor %}
</div>
</div>
{% endblock %}