f0ckv2/views/search.html

46 lines
1.8 KiB
HTML
Raw Normal View History

2022-05-06 12:20:11 +00:00
@include(snippets/header)
2023-05-03 02:53:22 +00:00
<div id="main">
<div class="f0ckgle">
2023-09-02 00:17:12 +00:00
<span style="color:#4285F4;">f</span>
<span style="color:#EA4335;">0</span>
<span style="color:#FBBC05;">c</span>
<span style="color:#4285F4;">k</span>
<span style="color:#34A853;">g</span>
<span style="color:#EA4335;">l</span>
<span style="color:#4285F4;">e</span>
2023-05-03 02:53:22 +00:00
<form action="/search" class="admin-search">
2023-09-02 00:27:33 +00:00
<input type="text" name="tag" value="{!! searchstring || '' !!}" /><button type="submit">🔍</button>
2023-05-03 02:53:22 +00:00
</form>
<div class="results">
@if(result)
<h2>{{ count }} f0cks given (page {{ pagination.page }} of {{ pagination.end }}):</h2>
<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>
@each(result as line)
<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>
</tr>
@endeach
</tbody>
</table>
@endif
</div>
2022-05-22 11:06:54 +00:00
</div>
2022-05-06 12:20:11 +00:00
</div>
2023-05-03 02:53:22 +00:00
@include(snippets/footer)