1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-06-25 16:04:37 -05:00

updated rating display

rating percentages where showing long decimal ranges, so a quick tweak
as added to make them clean whole numbers.
This commit is contained in:
ro
2024-04-14 15:04:36 -06:00
parent 659983af82
commit fed3f19aa2
3 changed files with 10 additions and 4 deletions

View File

@ -11,7 +11,7 @@
@foreach($locations as $location)
@php
$action = $location->block_count + $location->silence_count;
$rating = ($action / $sources)*100;
$rating = floor(($action / $sources)*100);
@endphp
<a class="list-link" role="listitem" href="/location/{{$location->uuid}}">
<span class="item-rating">{{$rating}}%</span>