f0ckv2/views/admin/search.html

27 lines
1.0 KiB
HTML
Raw Normal View History

2021-12-29 04:48:04 +00:00
@include(snippets/header_admin)
2021-12-04 11:19:47 +00:00
<form action="/admin/test" style="margin-top: 15px;">
<input type="text" name="tag" /><button type="submit">search</button>
</form>
<hr />
@if(result)
<h1>{{ result.length }} f0cks given</h1>
<table style="width: 100%;">
<tr>
<td style="text-align: center;">Thumbnail</td>
<td style="text-align: center;">ID</td>
<td style="text-align: center;">Tag</td>
<td style="text-align: center;">Username</td>
<td style="text-align: center;">Score</td>
</tr>
@each(result as line)
<tr>
2022-01-05 19:21:50 +00:00
<td style="width: 128px;"><a href="/{{ line.id }}" target="_blank"><img src="/t/{{ line.id }}.webp" /></a></td>
2021-12-04 11:19:47 +00:00
<td style="text-align: center;"><a href="/{{ line.id }}" target="_blank">{{ line.id }}</a></td>
2022-01-06 03:09:00 +00:00
<td style="text-align: center;"><a href="/admin/test?tag={{ line.tag?.replace(/\s/g, "+") }}">{{ line.tag }}</a></td>
2021-12-04 11:19:47 +00:00
<td style="text-align: center;">{{ line.username }}</td>
<td style="text-align: center;">{{ line.score }}</td>
</tr>
@endeach
</table>
@endif
2021-12-29 04:48:04 +00:00
@include(snippets/footer)