Skip to content

Commit

Permalink
Fix spiral-project#838: Round weight to 2 decimal cases
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnetop authored and Glandos committed Sep 19, 2021
1 parent 03b570b commit 47b6a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ihatemoney/templates/sidebar_table_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<tr id="bal-member-{{ member.id }}" action="{% if member.activated %}delete{% else %}reactivate{% endif %}">
<td class="balance-name">{{ member.name }}
{%- if show_weight -%}
<span class="light{% if not g.project.uses_weights %} extra-info{% endif %}">(x{{ member.weight|minimal_round(1) }})</span>
<span class="light{% if not g.project.uses_weights %} extra-info{% endif %}">(x{{ member.weight|minimal_round(2) }})</span>
{%- endif -%}
</td>
{%- if member_edit %}
Expand Down

0 comments on commit 47b6a08

Please sign in to comment.