displaying percent need twig/intl-extra

This commit is contained in:
2021-02-20 20:42:57 +01:00
parent 9eee3c119b
commit 2c18b10aa0
6 changed files with 82 additions and 4 deletions

View File

@@ -22,7 +22,7 @@
<tr>
<th scope="row">{{ beer.id }}</th>
<td>{{ beer.name }}</td>
<td>{{ beer.alcool }}</td>
<td>{{ beer.alcool|format_percent_number({rounding_mode: 'floor', fraction_digit: 1}) }}</td>
<td>
<a href="{{ path('beer_show', {'id': beer.id}) }}" class="btn btn-secondary" role="button" title="{{'show'}}">
<i class="fa fa-eye fa-fw"></i>

View File

@@ -19,7 +19,7 @@
</tr>
<tr>
<th scope="row">{{'Alcool'}}</th>
<td>{{ beer.alcool }}</td>
<td>{{ beer.alcool|format_percent_number({rounding_mode: 'floor', fraction_digit: 1}) }}</td>
</tr>
</tbody>
</table>