Reorganise code
This commit is contained in:
parent
a5f8070179
commit
253096bf59
21 changed files with 0 additions and 0 deletions
36
confarchive/templates/top_events.html
Normal file
36
confarchive/templates/top_events.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Conference archive{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>Conference archive</h1>
|
||||
<p><a href="{{ url_for("index") }}">home</a></p>
|
||||
|
||||
<h3>Top events</h3>
|
||||
|
||||
<form action="{{ url_for("events_page") }}">
|
||||
<div class="mb-3">
|
||||
<label for="q" class="form-label">event</label>
|
||||
<input type="text" class="form-control" name="q" id="q">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Search</button>
|
||||
</form>
|
||||
|
||||
<ul>
|
||||
{% for event_title, count in top_events %}
|
||||
<li>
|
||||
<a href="{{ url_for("events_page", q=event_title) }}">{{ event_title }}</a>
|
||||
({{ count }})
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue