Round Usage

This commit is contained in:
Kekskurse 2019-07-07 11:49:09 +02:00
parent 00d5cc8cc2
commit 4452020a29
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@
</tr> </tr>
<tr> <tr>
<th>Data Usage</th> <th>Data Usage</th>
<td>{{ account["dataUsed"] }}%</td> <td>{{ account["dataUsed"]|round(2) }}%</td>
</tr> </tr>
</table> </table>
<a href="#" class="btn btn-warning btn-sm updateNow">Update now</a> <a href="#" class="btn btn-warning btn-sm updateNow">Update now</a>

View file

@ -15,7 +15,7 @@
<td> +{{ account["number"] }}</td> <td> +{{ account["number"] }}</td>
<td> <td>
<div class="progress"> <div class="progress">
<div class="progress-bar" role="progressbar" style="width: {{ account["dataUsed"] }}%;" aria-valuenow="{{ account["dataUsed"] }}" aria-valuemin="0" aria-valuemax="100"></div> <div class="progress-bar" role="progressbar" style="width: {{ account["dataUsed"]|round(2) }}%;" aria-valuenow="{{ account["dataUsed"]|round(2) }}" aria-valuemin="0" aria-valuemax="100"></div>
</div> </div>
</td> </td>
<td> {{ account["currentPlan"] }}</td> <td> {{ account["currentPlan"] }}</td>