31 lines
1.3 KiB
HTML
Executable File
31 lines
1.3 KiB
HTML
Executable File
{% extends "base.html" %}
|
|
{% block content %}
|
|
<h1 class="page-title">Wissensdatenbank</h1>
|
|
<div class="tabs">
|
|
{% for t in tabs %}<a href="{{ t.href }}" class="{% if t.active %}active{% endif %}">{{ t.label }}</a>{% endfor %}
|
|
</div>
|
|
<form method="get" action="/wissen" style="margin-bottom:14px">
|
|
<input type="text" name="q" placeholder="Suche in Titel, Inhalt, Tags ..." value="{{ q }}" class="search-input">
|
|
<button class="btn ghost" type="submit">Suchen</button>
|
|
</form>
|
|
<table class="tickets">
|
|
<thead><tr><th>Titel</th><th>Kategorie</th><th>Status</th><th>Tags</th><th>Autor</th><th>Aktualisiert</th></tr></thead>
|
|
<tbody>
|
|
{% for a in rows %}
|
|
<tr class="row" data-href="/wissen/{{ a.id }}">
|
|
<td><b>{{ a.titel }}</b></td>
|
|
<td><span class="pill">{{ a.kategorie }}</span></td>
|
|
<td><span class="pill {{ a.status_class }}">{{ a.status }}</span></td>
|
|
<td>{% for t in a.tags %}<span class="pill agent tagpill">{{ t }}</span>{% endfor %}</td>
|
|
<td class="sz">{{ a.autor }}</td>
|
|
<td class="sz">{{ a.updated }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% if rows.is_empty() %}<tr><td colspan="6" class="sz">Keine Artikel.</td></tr>{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% if ctx.operative %}
|
|
<div style="margin-top:14px"><a class="btn" href="/wissen/new">+ Neuer Artikel</a></div>
|
|
{% endif %}
|
|
{% endblock %}
|