Switch from bootstrap to old-school minimal style.

This commit is contained in:
Edward Betts 2023-09-17 10:54:38 +05:30
parent 301c389ba9
commit 926c2370c6
3 changed files with 36 additions and 27 deletions

View file

@ -4,9 +4,17 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Xanadu{% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous"> <style type="text/css">
body{
font-family: monospace;
margin:40px auto;max-width:700px;line-height:1.6;font-size:18px;color:#444;padding:0 10px}
h1,h2,h3{line-height:1.2}
.text-nowrap { white-space:nowrap; }
.text-end { text-align: right; }
</style>
<title>{% block title %}Xanadu{% endblock %}</title>
{% block style %} {% block style %}
{% endblock %} {% endblock %}
@ -16,8 +24,6 @@
{% block content %} {% block content %}
{% endblock %} {% endblock %}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
{% block scripts %} {% block scripts %}
{% endblock %} {% endblock %}

View file

@ -16,31 +16,32 @@
</form> </form>
<ul> <div style="margin-bottom:1rem">
<li>{{ "{:,d}".format(count.conference) }} conferences</li> {{ "{:,d}".format(count.conference) }} conferences<br/>
<li>{{ "{:,d}".format(count.event) }} talks - {{ "{:,d}".format(count.event) }} talks -
<a href="{{ url_for("events_page") }}">most common titles</a> <a href="{{ url_for("events_page") }}">most common titles</a><br/>
</li> {{ "{:,d}".format(count.person) }} speakers
<li> <a href="{{ url_for("top_speakers_page") }}">top speakers</a><br/>
{{ "{:,d}".format(count.person) }} speakers </div>
<a href="{{ url_for("top_speakers_page") }}">top speakers</a>
</li>
</ul>
<table class="table w-auto">
<tbody>
{% for item in items %} {% for item in items %}
<tr> <div style="margin-bottom:1.5rem">
<td> <a href="{{ url_for("conference_page", short_name=item.short_name) }}">{{ item.title }}</a>
<a href="{{ url_for("conference_page", short_name=item.short_name) }}">{{ item.title }}</a> {{ item.start.strftime("%d %b %Y") }}
</td> <br/>
<td class="text-end">{{ item.start.strftime("%d %b %Y") }}</td> {% if item.venue %}
<td class="text-end">{{ (item.end - item.start).days + 1 }} days</td> {{ item.venue.name }}
<td class="text-end">{{ item.events.count() }} talks</td> &ndash;
<td class="text-end">{{ item.people_detail.count() }} speakers</td> {{ item.venue.city.name }},
</tr> {{ item.venue.city.country.name }}
<br/>
{% endif %}
{{ (item.end - item.start).days + 1 }} days,
{{ item.events.count() }} talks,
{{ item.people_detail.count() }} speakers<br/>
</div>
{% endfor %} {% endfor %}
</tbody>
</table> </table>
</div> </div>

View file

@ -22,7 +22,9 @@
<li> <li>
<a href="{{ url_for("event_page", event_id=item.id) }}">{{ item.title }}</a> <a href="{{ url_for("event_page", event_id=item.id) }}">{{ item.title }}</a>
&mdash; &mdash;
{{ item.conference.title }} <a href="{{ url_for("conference_page", short_name=item.conference.short_name) }}">{{ item.conference.title }}</a>
&mdash;
{{ item.event_date.strftime("%d %b %Y at %H:%M") if item.event_date else "date missing" }}
&mdash; &mdash;
{% for p in item.people %} {% for p in item.people %}
<a href="{{ url_for("person", person_id=p.id) }}">{{ p.name }}</a> <a href="{{ url_for("person", person_id=p.id) }}">{{ p.name }}</a>