Skip to content

Commit

Permalink
rapihin tampilan harga
Browse files Browse the repository at this point in the history
  • Loading branch information
alinnural committed Sep 25, 2020
1 parent dd5a88b commit 98a9a0f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions templates/website/home-adinusa.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,16 @@ <h2>Kursus Terbaru</h2>

<div class="author_info">
<span class="d-flex align-items-center">
<h4>
<span class="normal-price">
{% if course.product.discount_type == 1 %}<span class="badge badge-discount">{{ course.product.discount_value }}%</span>{% endif %}
{% if course.product.discount %}<s>Rp {{ course.product.price|intcomma }}</s>{% endif %}
</span><br>
{% if course.product.price %}Rp {{ course.product.price|subtract:course.product.discount|intcomma }}{% else %}GRATIS{% endif %}
<h4>
{% if course.product.price %}
<span class="normal-price">
{% if course.product.discount_type == 1 %}<span class="badge badge-discount">{{ course.product.discount_value }}%</span>{% endif %}
{% if course.product.discount %}<s>Rp {{ course.product.price|intcomma }}</s>{% endif %}
</span><br>
Rp {{ course.product.price|subtract:course.product.discount|intcomma }}
{% else %}
GRATIS
{% endif %}
</h4>
</span>
{% if course.vendor.logo %}
Expand Down

0 comments on commit 98a9a0f

Please sign in to comment.