From dd42321080f90550d004fd920f840c982b7972e5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 23 May 2024 19:31:36 +0200 Subject: [PATCH] wip #6934 @0.5 --- app/Fluidbook/Stats.php | 2 +- resources/views/fluidbook_stats/stats.blade.php | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) 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 -- 2.39.5