Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tbody>
- {% for product in products %}
- <tr>
- <td>{{ product.id|replace("_", ' ')|lower()|title() }}</td>
- {% for buy in product.buy_price %}
- <td>{{ buy.pricePerUnit }}</td>
- {% for sell in product.sell_price %}
- <td>{{ sell.pricePerUnit }}</td>
- <td>{{ product.buy_volume}}</td>
- <td>{{ product.sell_volume}}</td>
- {% set margin = buy.pricePerUnit - sell.pricePerUnit%} {% set marginPer
- = margin/buy.pricePerUnit * 100%}
- <td
- aria-label="{{ marginPer|round(1, 'floor') }} % "
- data-balloon-pos="right"
- >
- {{ margin|round(1, 'floor')}}
- </td>
- {% endfor %}{% endfor %}
- <td>
- <a
- href="#"
- class="read_more"
- aria-label="Coming Soon."
- data-balloon-pos="right "
- >Read more</a
- >
- </td>
- </tr>
- {% endfor %}
- </tbody>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement