search shmearch
This commit is contained in:
31
views/search.html
Normal file
31
views/search.html
Normal file
@ -0,0 +1,31 @@
|
||||
@include(snippets/header)
|
||||
<h1 style="text-align: center">f0ckgle</h1>
|
||||
<form action="/search" class="admin-search">
|
||||
<input type="text" name="tag" value="{!! searchstring !!}" /><button type="submit"><b>f0ck</b></button>
|
||||
</form>
|
||||
<div class="results">
|
||||
@if(result)
|
||||
<h1>{{ result.length }} f0cks given:</h1>
|
||||
<table style="width: 100%;" class="table">
|
||||
<tr>
|
||||
<th>Thumbnail</th>
|
||||
<th>ID</th>
|
||||
<th>Tag</th>
|
||||
<th>Mime</th>
|
||||
<th>Username</th>
|
||||
<th>Score</th>
|
||||
</tr>
|
||||
@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 style="text-align: center;"><a href="/tag/{!! line.tag !!}/{{ line.id }}" target="_blank">{{ line.id }}</a></td>
|
||||
<td style="text-align: center;"><a href="/tag/{!! line.tag !!}">{!! line.tag !!}</a></td>
|
||||
<td style="text-align: center;">{{ line.mime }}</td>
|
||||
<td style="text-align: center;"><a href="/user/{!! line.username !!}/f0cks/{{ line.id }}">{!! line.username !!}</a></td>
|
||||
<td style="text-align: center;">{{ line.score.toFixed(2) }}</td>
|
||||
</tr>
|
||||
@endeach
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
@include(snippets/footer)
|
Reference in New Issue
Block a user