65 lines
2.0 KiB
HTML
65 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Berichten</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
|
|
</head>
|
|
<body>
|
|
{% include 'navbar_template.html' %}
|
|
{% include 'flash_template.html' %}
|
|
<h1>List of berichten</h1>
|
|
<p>Er zijn momenteel {{ berichtcount }} berichten in het systeem</p>
|
|
<table style="width:100%">
|
|
<tr>
|
|
<th>Bericht ID</th>
|
|
<th>Naam</th>
|
|
<th>Bericht inhoud</th>
|
|
<th>Geplaatst in</th>
|
|
<th>Ontvangen op</th>
|
|
<th>Status bericht</th>
|
|
<th>Moderator</th>
|
|
<th>Gekeurd op</th>
|
|
<th>Twitter ID</th>
|
|
</tr>
|
|
{% for row in berichten %}
|
|
<tr style="text-align: center;">
|
|
<td><a href="/bericht/{{ row[0] }}">{{ row[0] }}</a></td>
|
|
<td>{{ row[3] }}</td>
|
|
<td>{{ row[1] }}</td>
|
|
<td>{{ row[5] }}</td>
|
|
<td>{{ row[2] }}</td>
|
|
<td>{{ row[7] }}</td>
|
|
<td>{{ row[6] }}</td>
|
|
<td>{{ row[4] }}</td>
|
|
<td>
|
|
{% if row[8] != None%}
|
|
<a href="https://twitter.com/nszuiltest33332/status/{{ row[8] }}">
|
|
{% endif %}
|
|
{{ row[8] }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<form>
|
|
<label for="maxitems">Max items in table:</label>
|
|
<select name="maxitems" id="maxitems">
|
|
<option value="10">10</option>
|
|
<option value="20">20</option>
|
|
<option value="50">50</option>
|
|
<option value="100">100</option>
|
|
</select>
|
|
<label for="pagenum">Table page:</label>
|
|
<select name="pagenum" id="pagenum">
|
|
<option value="1">1</option>
|
|
<option value="2">2</option>
|
|
<option value="3">3</option>
|
|
<option value="4">4</option>
|
|
</select>
|
|
<button type="submit">Refresh table</button>
|
|
</form>
|
|
|
|
</body>
|
|
</html> |