master
kek7198 2021-12-07 18:26:39 -06:00
parent 9ee2957417
commit 51af7fc2f4
1 changed files with 30 additions and 20 deletions

View File

@ -50,26 +50,36 @@
</tr> </tr>
</thead> </thead>
<tbody class="bg-gray-100 divide-y divide-gray-300 border-t border-gray-300"> <tbody class="bg-gray-100 divide-y divide-gray-300 border-t border-gray-300">
{% for vote in ups %} {% if ups %}
<tr class="shadow-inset-t-white-05 odd:bg-gray-200"> {% for vote in ups %}
<td class="px-6 py-4 whitespace-nowrap"> <tr class="shadow-inset-t-white-05 odd:bg-gray-200">
<div class="flex items-center"> <td class="px-6 py-4 whitespace-nowrap">
<img loading="lazy" src="{{vote.user.profile_url}}" class="flex-shrink-0 p-[3px] border w-12 h-12 object-cover {{ 'bg-red-800 border-red-900' if v.username == vote.user.username else 'bg-white border-gray-300' }}" alt="{{ vote.user.username }} avatar"/> <div class="flex items-center">
<!-- User Details --> <img loading="lazy" src="{{vote.user.profile_url}}" class="flex-shrink-0 p-[3px] border w-12 h-12 object-cover {{ 'bg-red-800 border-red-900' if v.username == vote.user.username else 'bg-white border-gray-300' }}" alt="{{ vote.user.username }} avatar"/>
<div class="ml-3"> <!-- User Details -->
<a class="block font-bold text-black hover:text-red-600" href="/@{{vote.user.username}}"> <div class="ml-3">
{{vote.user.username}} <a class="block font-bold text-black hover:text-red-600" href="/@{{vote.user.username}}">
</a> {{vote.user.username}}
{% if vote.user.customtitle %} </a>
<p class="text-sm" style="#{{vote.user.namecolor}}"> {% if vote.user.customtitle %}
{{vote.user.customtitle | safe}} <p class="text-sm" style="#{{vote.user.namecolor}}">
</p> {{vote.user.customtitle | safe}}
{% endif %} </p>
{% endif %}
</div>
</div> </div>
</div> </td>
</td> </tr>
</tr> {% endfor %}
{% endfor %} {% else %}
<tr class="shadow-inset-t-white-05 odd:bg-gray-200">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
No upvotes yet...
</div>
</td>
</tr>
{% endif %}
</tbody> </tbody>
</table> </table>
</div> </div>
@ -80,7 +90,7 @@
<h2 class="text-2xl font-heading font-bold"> <h2 class="text-2xl font-heading font-bold">
Downvotes Downvotes
</h2> </h2>
<div class="flex flex-col"> <div class="flex flex-col mb-8">
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<div class="align-middle inline-block min-w-full"> <div class="align-middle inline-block min-w-full">
<div class="flex flex-col bg-gray-200 border border-gray-300 rounded overflow-hidden"> <div class="flex flex-col bg-gray-200 border border-gray-300 rounded overflow-hidden">