f0ckv2/views/search.html

35 lines
1.4 KiB
HTML
Raw Normal View History

2022-05-06 12:20:11 +00:00
@include(snippets/header)
<h1 style="text-align: center">f0ckgle</h1>
<form action="/search" class="admin-search">
2022-05-06 12:48:47 +00:00
<input type="text" name="tag" value="{!! searchstring || '' !!}" /><button type="submit"><b>f0ck</b></button>
2022-05-06 12:20:11 +00:00
</form>
<div class="results">
@if(result)
2022-05-07 15:35:43 +00:00
<h2>{{ count }} f0cks given (page {{ pagination.page }} of {{ pagination.end }}):</h2>
2022-05-06 15:02:03 +00:00
<table style="width: 100%" class="table">
<thead>
<tr>
<th>Thumbnail</th>
<th>ID</th>
<th>Tag</th>
<th>Mime</th>
<th>Username</th>
<th>Score</th>
</tr>
</thead>
<tbody>
2022-05-06 12:20:11 +00:00
@each(result as line)
2022-05-06 15:02:03 +00:00
<tr>
<td style="width: 128px;"><a href="/tag/{!! line.tag !!}/{{ line.id }}" target="_blank"><img src="/t/{{ line.id }}.webp" /></a></td>
<td><span class="mview_desc">ID:</span><a href="/tag/{!! line.tag !!}/{{ line.id }}" target="_blank">{{ line.id }}</a></td>
<td><span class="mview_desc">Tag:</span><a href="/tag/{!! line.tag !!}">{!! line.tag !!}</a></td>
<td><span class="mview_desc">Mime:</span>{{ line.mime }}</td>
<td><span class="mview_desc">User:</span><a href="/user/{!! line.username !!}/f0cks/{{ line.id }}">{!! line.username !!}</a></td>
<td><span class="mview_desc">Score:</span>{{ line.score?.toFixed(2) }}</td>
2022-05-06 15:02:03 +00:00
</tr>
2022-05-06 12:20:11 +00:00
@endeach
2022-05-06 15:02:03 +00:00
</tbody>
2022-05-06 12:20:11 +00:00
</table>
@endif
</div>
@include(snippets/footer)