Features: 1) Refactored sales vs returns chart rendering for improved structure and readability;
Fixes: 1) Fixed inconsistent whitespace in image tag attributes; Extra: 1) Added missing line break for visual spacing; 2) Updated footer text for consistency and clarity.
This commit is contained in:
parent
d139b7daf6
commit
d4ea32c375
1 changed files with 44 additions and 39 deletions
|
|
@ -79,12 +79,14 @@
|
|||
</div>
|
||||
<div>
|
||||
<div class="flex items-center gap-2 mb-2">
|
||||
<span class="inline-block w-3 h-3 rounded-sm" style="background:rgb(34,197,94)"></span>
|
||||
<span class="inline-block w-3 h-3 rounded-sm"
|
||||
style="background:rgb(34,197,94)"></span>
|
||||
<span class="text-sm text-gray-600 dark:text-gray-300">{% trans "Gross" %}:</span>
|
||||
<span class="font-semibold">{{ gross }}</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="inline-block w-3 h-3 rounded-sm" style="background:rgb(239,68,68)"></span>
|
||||
<span class="inline-block w-3 h-3 rounded-sm"
|
||||
style="background:rgb(239,68,68)"></span>
|
||||
<span class="text-sm text-gray-600 dark:text-gray-300">{% trans "Returns" %}:</span>
|
||||
<span class="font-semibold">{{ returns }}</span>
|
||||
</div>
|
||||
|
|
@ -121,7 +123,8 @@
|
|||
{% endcomponent %}
|
||||
{% if most_wished_product %}
|
||||
<a href="{{ most_wished_product.admin_url }}" class="flex items-center gap-4">
|
||||
<img src="{{ most_wished_product.image }}" alt="{{ most_wished_product.name }}" class="w-16 h-16 object-cover rounded" />
|
||||
<img src="{{ most_wished_product.image }}" alt="{{ most_wished_product.name }}"
|
||||
class="w-16 h-16 object-cover rounded"/>
|
||||
<span class="font-medium">{{ most_wished_product.name }}</span>
|
||||
</a>
|
||||
{% else %}
|
||||
|
|
@ -137,7 +140,8 @@
|
|||
{% endcomponent %}
|
||||
{% if most_popular_product %}
|
||||
<a href="{{ most_popular_product.admin_url }}" class="flex items-center gap-4">
|
||||
<img src="{{ most_popular_product.image }}" alt="{{ most_popular_product.name }}" class="w-16 h-16 object-cover rounded" />
|
||||
<img src="{{ most_popular_product.image }}" alt="{{ most_popular_product.name }}"
|
||||
class="w-16 h-16 object-cover rounded"/>
|
||||
<span class="font-medium">{{ most_popular_product.name }}</span>
|
||||
</a>
|
||||
{% else %}
|
||||
|
|
@ -153,8 +157,9 @@
|
|||
{% endcomponent %}
|
||||
|
||||
<div class="mt-4">
|
||||
<br/>
|
||||
{% component "unfold/components/text.html" with class="text-center text-xs text-gray-500 dark:text-gray-400" %}
|
||||
"eVibes" {{ evibes_version }} · "Wiseless Team"
|
||||
eVibes {{ evibes_version }} · Wiseless Team
|
||||
{% endcomponent %}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue