Skip to content

Commit

Permalink
web: product details: show amount in container sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
sre committed Nov 18, 2023
1 parent 39af083 commit c4c0c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/products/details.html.tera
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</td>
<tr><th scope="row">Name</th><td id="productname">{{ name }}</td>
<tr><th scope="row">Category</th><td id="productcategory">{{ category }}</td>
<tr><th scope="row">Amount</th><td id="productamount">{{ amount }}</td>
<tr><th scope="row">Amount</th><td id="productamount"><div class="row"><div class="col">{{ amount }}</div>{% if metadata.container_size > 0 %}<div class="col text-end">{{ (amount - (amount % metadata.container_size)) / metadata.container_size }} container(s) + {{ amount % metadata.container_size }} items</div>{% endif %}</div></td>
<tr><th scope="row">State</th><td>{{ togglebutton(clickable=session.auth_products, enabled=not deprecated, buttonid="deprecatedbutton", enabledStr="Active", disabledStr="Deprecated") | safe }}</td>
</table>

Expand Down

0 comments on commit c4c0c2e

Please sign in to comment.