displaying percent need twig/intl-extra
This commit is contained in:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user