forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-31 11:08:03 -06:00
parent 25d4717195
commit 6ae205b190
1 changed files with 21 additions and 17 deletions

View File

@ -8,28 +8,32 @@
</div>
<hr class="mt-6 mb-5 h-0.5 border-b border-gray-300 dark:border-gray-900 shadow-inset-t-white-05"/>
<h2 class="ml-2 font-bold text-lg font-heading leading-normal mb-2">Recent Mod Activity</h2>
{% if actions %}
<ul class="flex flex-col divide-y space-y-2 mb-0 list-none">
{% for ma in actions %}
<li id="action-{{ma.id}}" class="relative">
<div class="w-6 h-6 flex justify-center items-center flex-shrink-0">
<i class="far {{ ma.icon }} {{ma.color}} text-lg fa-fw"></i>
</div>
<div class="pl-2 text-gray-500 dark:text-gray-400 text-sm">
<div>
<a href="{{ma.user.url}}" class="font-font text-black dark:text-gray-200 hover:text-primary" target="_self">@{{ma.user.username}}
</a>
<span>{{ma.string | safe}}</span>
</div>
<div class="text-gray-400 dark:text-gray-500 text-xs">
<span>{{ma.age_string}}</span>
</div>
</div>
</li>
{% for ma in actions %}
<li id="action-{{ma.id}}" class="relative">
<a href="{{ma.permalink}}" class="flex items-center">
<div class="w-6 h-6 flex justify-center items-center flex-shrink-0">
<i class="far {{ ma.icon }} {{ma.color}} text-lg fa-fw"></i>
</div>
<div class="pl-2 text-gray-500 dark:text-gray-400 text-sm">
<div>
<a href="{{ma.user.url}}" class="font-font text-black dark:text-gray-200 hover:text-primary" target="_self">@{{ma.user.username}}
</a>
<span>{{ma.string | safe}}</span>
</div>
<div class="text-gray-400 dark:text-gray-500 text-xs">
<span>{{ma.age_string}}</span>
</div>
</div>
</a>
</li>
{% endfor %}
</ul>
{% else %}
<div class="py-4 text-center">
<i class="block fas fa-ghost text-lg text-gray-400 dark:text-gray-700"></i>
<p class="mt-1 text-sm text-gray-500">No recent mod activity...</p>
</div>
{% endfor %}
{% endif %}
</div>