FossilRepo

fossilrepo / templates / fossil / ticket_report_results.html
1
{% extends "base.html" %}
2
{% block title %}{{ report.title }} — {{ project.name }} — Fossilrepo{% endblock %}
3
4
{% block content %}
5
<h1 class="text-2xl font-bold text-gray-100 mb-2">{{ project.name }}</h1>
6
{% include "fossil/_project_nav.html" %}
7
8
<div class="mb-4">
9
<a href="{% url 'fossil:ticket_reports' slug=project.slug %}" class="text-sm text-brand-light hover:text-brand">&larr; Back to Reports</a>
10
</div>
11
12
<div class="flex items-center justify-between mb-4">
13
<div>
14
<h2 class="text-xl font-bold text-gray-100">{{ report.title }}</h2>
15
{% if report.description %}
16
<p class="text-sm text-gray-500 mt-1">{{ report.description }}</p>
17
{% endif %}
18
</div>
19
</div>
20
21
{% if error %}
22
<div class="rounded-lg bg-red-900/30 border border-red-700 p-4 mb-4">
23
<p class="text-sm text-red-300">{{ error }}</p>
24
</div>
25
{% endif %}
26
27
{% if columns %}
28
<div class="rounded-lg bg-gray-800 border border-gray-700 overflow-x-auto">
29
<table class="min-w-full divide-y divide-gray-700">
30
<thead>
31
<tr>
32
{% for col in columns %}
33
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">{{ col }}</th>
34
{% endfor %}
35
</tr>
36
</thead>
37
<tbody class="divide-y divide-gray-700">
38
{% for row in rows %}
39
<tr class="hover:bg-gray-750">
40
{% for cell in row %}
41
<td class="px-4 py-3 text-sm text-gray-300 whitespace-nowrap">{{ cell|default:"" }}</td>
42
{% endfor %}
43
</tr>
44
{% endfor %}
45
</tbody>
46
</table>
47
</div>
48
<div class="mt-2 text-xs text-gray-500">
49
{{ rows|length }} row{{ rows|length|pluralize }} returned{% if rows|length >= 1000 %} (limited to 1000){% endif %}
50
</div>
51
{% elif not error %}
52
<div class="rounded-lg bg-gray-800 border border-gray-700 p-8 text-center">
53
<p class="text-sm text-gray-500">No results.</p>
54
</div>
55
{% endif %}
56
{% endblock %}
57

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button