From: Vincent Vanwaelscappel Date: Thu, 23 May 2024 17:31:36 +0000 (+0200) Subject: wip #6934 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=dd42321080f90550d004fd920f840c982b7972e5;p=fluidbook-toolbox.git wip #6934 @0.5 --- diff --git a/app/Fluidbook/Stats.php b/app/Fluidbook/Stats.php index 011f8cb43..68841ba0c 100644 --- a/app/Fluidbook/Stats.php +++ b/app/Fluidbook/Stats.php @@ -228,7 +228,7 @@ class Stats extends Reporting $this->viewData->countries = $this->_processCountries(); $this->viewData->multimedia = $this->_processMultimedia(); $this->viewData->shareDetails = $this->_processShareDetails(); - $this->viewData->users = $this->_processUsers(); + $this->viewData->setRaw('users', $this->_processUsers()); //=== MAIN PERIOD STATISTICS // These are the main statistics used to build the chart and the table below it. diff --git a/resources/views/fluidbook_stats/stats.blade.php b/resources/views/fluidbook_stats/stats.blade.php index 0fcaa1ef3..bf645f916 100644 --- a/resources/views/fluidbook_stats/stats.blade.php +++ b/resources/views/fluidbook_stats/stats.blade.php @@ -328,8 +328,6 @@ @endif - - @if($users) @@ -347,8 +345,8 @@ @foreach($users as $userId => $user) - - {{ $user['userid'] }} + + {{ $userId }} {{ $formatter->format($user['nb_visits']) }} @@ -362,7 +360,6 @@ - @endif {{-- It's possible for there to be no statistics returned by the API --}} @else