cosmetic updates to Topic page
This commit is contained in:
+24
-21
@@ -20,10 +20,12 @@
|
||||
class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">
|
||||
Conference List
|
||||
</a>
|
||||
<a href="{{ urlStem }}/new_topic"
|
||||
class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">
|
||||
Add Topic
|
||||
</a>
|
||||
{{ if canCreate }}
|
||||
<a href="{{ urlStem }}/new_topic"
|
||||
class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">
|
||||
Add Topic
|
||||
</a>
|
||||
{{ end }}
|
||||
<a href="/TODO/find"
|
||||
class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">
|
||||
Find
|
||||
@@ -32,45 +34,46 @@
|
||||
class="bg-gray-600 hover:bg-gray-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">
|
||||
Manage
|
||||
</a>
|
||||
</div>
|
||||
<div class="text-xs text-gray-600">
|
||||
<a href="{{ permalink }}"
|
||||
class="text-blue-700 hover:text-blue-900">
|
||||
[Permalink to this conference]
|
||||
</a>
|
||||
{{ if false }}{* TODO *}
|
||||
<a href="/TODO{{ urlStem }}/hotlist"
|
||||
class="bg-orange-600 hover:bg-orange-700 text-black px-4 py-2 rounded text-sm font-medium transition-colors">
|
||||
Add to Hotlist
|
||||
</a>
|
||||
{{ end }}
|
||||
<a class="text-xl" href="{{ permalink }}" title="Permalink to this conference">🔗</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Topics Table -->
|
||||
<div class="max-w-6xl">
|
||||
<div class="max-w-7xl">
|
||||
<div class="bg-white border border-gray-300 rounded-lg overflow-hidden">
|
||||
<table class="w-full">
|
||||
<thead class="bg-gray-100 border-b border-gray-300">
|
||||
<tr>
|
||||
{{ sp := iif(sort == 1, -1, 1) }}
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider">
|
||||
<a href="{{ urlStem }}?sort={{ sp }}"
|
||||
class="text-blue-700 hover:text-blue-900">#</a>
|
||||
<a href="{{ urlStem }}?sort={{ sp }}" class="text-blue-700 hover:text-blue-900">#</a>
|
||||
{{ if sort == 1 }}🔼{{ else if sort == -1 }}🔽{{ end }}
|
||||
</th>
|
||||
{{ sp = iif(sort == 2, -2, 2) }}
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider">
|
||||
<a href="{{ urlStem }}?sort={{ sp }}"
|
||||
class="text-blue-700 hover:text-blue-900">Topic Name</a>
|
||||
<a href="{{ urlStem }}?sort={{ sp }}" class="text-blue-700 hover:text-blue-900">Topic Name</a>
|
||||
{{ if sort == 2 }}🔼{{ else if sort == -2 }}🔽{{ end }}
|
||||
</th>
|
||||
{{ sp = iif(sort == 3, -3, 3) }}
|
||||
<th class="px-4 py-3 text-right text-xs font-bold text-gray-700 uppercase tracking-wider">
|
||||
<a href="{{ urlStem }}?sort={{ sp }}"
|
||||
class="text-blue-700 hover:text-blue-900">New</a>
|
||||
<a href="{{ urlStem }}?sort={{ sp }}" class="text-blue-700 hover:text-blue-900">New</a>
|
||||
{{ if sort == -3 }}🔼{{ else if sort == 3 }}🔽{{ end }}
|
||||
</th>
|
||||
{{ sp = iif(sort == 4, -4, 4) }}
|
||||
<th class="px-4 py-3 text-right text-xs font-bold text-gray-700 uppercase tracking-wider">
|
||||
<a href="{{ urlStem }}?sort={{ sp }}"
|
||||
class="text-blue-700 hover:text-blue-900">Total</a>
|
||||
<a href="{{ urlStem }}?sort={{ sp }}" class="text-blue-700 hover:text-blue-900">Total</a>
|
||||
{{ if sort == -4 }}🔼{{ else if sort == 4 }}🔽{{ end }}
|
||||
</th>
|
||||
{{ sp = iif(sort == 5, -5, 5) }}
|
||||
<th class="px-4 py-3 text-left text-xs font-bold text-gray-700 uppercase tracking-wider">
|
||||
<a href="{{ urlStem }}?sort={{ sp }}"
|
||||
class="text-blue-700 hover:text-blue-900">Last Response</a>
|
||||
<a href="{{ urlStem }}?sort={{ sp }}" class="text-blue-700 hover:text-blue-900">Last Response</a>
|
||||
{{ if sort == -5 }}🔼{{ else if sort == 5 }}🔽{{ end }}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Reference in New Issue
Block a user