]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5475
authorsoufiane <soufiane@cubedesigners.com>
Mon, 6 Nov 2023 16:03:51 +0000 (17:03 +0100)
committersoufiane <soufiane@cubedesigners.com>
Mon, 6 Nov 2023 16:43:48 +0000 (17:43 +0100)
app/Http/Controllers/Admin/Operations/FluidbookPublication/StatsOperation.php
resources/views/fluidbook_stats/stats.blade.php

index 156c82336adf97905018d77aa419d5095d1d37dc..5eaa9ff11f4b43db56ae406622a675089c5146a9 100644 (file)
@@ -155,8 +155,14 @@ trait StatsOperation
                     $text = $td->text;
                     if($td->getAttribute('data-flag')) {
                         $text = $td->getAttribute('data-flag');
-                    } elseif($td->getAttribute('sorttable_customkey')) {
-                        $text = $td->getAttribute('sorttable_customkey');
+                    }
+
+                    if($td->getAttribute('sorttable_customkey')) {
+                        $text = str_replace(',', ', ',$td->getAttribute('sorttable_customkey'));
+                    }
+
+                    if($td->getAttribute('data-type-media')) {
+                        $text = $td->getAttribute('data-type-media') . ' : ' . $text ;
                     }
 
                     $datas[$k][] = trim(preg_replace('/\s\s+/', ' ', $text));
index 0f76e94ae7808b70336071248e37a81d3408f61b..7ef24166500c61d5426e92f69f209df39df3afc2 100644 (file)
                     <tbody>
                     @foreach($multimedia as $label=>$media)
                         <tr>
-                            <td class="whitespace-nowrap" data-sort-value="{{$label }}">
+                            <td class="whitespace-nowrap" data-sort-value="{{$label }}" data-type-media="{{ $media['type'] }}">
                                 <i class="{{$icons[$media['type']]}}"></i> {{$label }}
                             </td>
                             @include('fluidbook_stats.pagelink',['group'=>$media['pages'][0]??''])