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:
@ -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>
|
||||
|
Reference in New Issue
Block a user