Add support for partial views with jinga-partials and refactor stats as partial view
This commit is contained in:
13
templates/partials/stats.html
Normal file
13
templates/partials/stats.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<div class="mt-4 w-full grid grid-cols-1 md:grid-cols-3 2xl:grid-cols-4 xl:grid-cols-5 gap-4">
|
||||
{% for stat in stats%}
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 ">
|
||||
<div class="flex items-center">
|
||||
<div class="flex-shrink-0">
|
||||
<span class="text-2xl sm:text-3xl leading-none font-bold text-gray-900">{{
|
||||
stat['Value'] }}</span>
|
||||
<h3 class="text-base font-normal text-gray-500">{{ stat['Text'] }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user