have the structure of results to return with Find Posts
This commit is contained in:
+66
-2
@@ -201,6 +201,71 @@
|
||||
<div class="text-sm text-black font-bold">{{ resultHeader }}</div>
|
||||
</div>
|
||||
{{ if isset(resultList) }}
|
||||
{{ if mode == "PST" }}
|
||||
<div class="overflow-x-auto">
|
||||
<div class="bg-white border border-gray-300 rounded-lg overflow-hidden">
|
||||
<table class="w-full">
|
||||
<thead class="bg-gray-100 border-b-2 border-gray-300">
|
||||
<tr>
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider">Post Link</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider">Author</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider whitespace-nowrap">Post Date</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider">Lines</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider">Preview</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
{{ range _, rx := resultList }}
|
||||
<tr class="hover:bg-blue-50">
|
||||
<td class="px-4 py-3 text-sm">
|
||||
<a href="http://necrovenice:8080/venice/go/minds!Playground.2.880"
|
||||
class="text-blue-700 hover:text-blue-900 font-mono">minds!Playground.2.880</a>
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm">
|
||||
<a href="http://necrovenice:8080/venice/user/Beenherebefo"
|
||||
class="text-blue-700 hover:text-blue-900">Beenherebefo</a>
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm whitespace-nowrap text-gray-600">
|
||||
Jan 1, 2002 10:57:06 PM
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm text-gray-600">
|
||||
12
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm text-gray-600 italic">
|
||||
Bold, the truth is that one entity can incorporate in only...
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ if isset(resultShowPrev) || isset(resuiltShowNext) }}
|
||||
<!-- Bottom Navigation -->
|
||||
<div class="flex justify-end mt-6">
|
||||
<form method="POST" action="/find">
|
||||
<input type="hidden" name="mode" value="{{ mode }}"/>
|
||||
<input type="hidden" name="ofs" value="{{ ofs }}"/>
|
||||
<input type="hidden" name="field" value="{{ field }}"/>
|
||||
<input type="hidden" name="oper" value="{{ oper }}"/>
|
||||
<input type="hidden" name="term" value="{{ term }}"/>
|
||||
{{ if isset(resultShowPrev) }}
|
||||
<button type="submit" name="prev"
|
||||
class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-2 rounded font-medium transition-colors">
|
||||
⏪ Prev
|
||||
</button>
|
||||
{{ end }}
|
||||
{{ if isset(resultShowNext) }}
|
||||
<button type="submit" name="next"
|
||||
class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-2 rounded font-medium transition-colors">
|
||||
Next ⏩
|
||||
</button>
|
||||
{{ end }}
|
||||
</form>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<!-- Results List -->
|
||||
<div class="bg-gray-50 p-6 rounded-lg">
|
||||
<div class="space-y-4">
|
||||
@@ -260,8 +325,6 @@
|
||||
class="text-blue-700 hover:text-blue-900 font-bold text-base">{{ DisplayExpandCat(rx, .) }}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ else if mode == "PST" }}
|
||||
TODO: I don't know PST yet
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
@@ -306,4 +369,5 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user