update ui class and traffic stats

This commit is contained in:
envoyr
2022-03-18 12:53:34 +01:00
parent ba0d33392c
commit 69895943bd
41 changed files with 90927 additions and 16754 deletions

View File

@@ -17,7 +17,7 @@ if (!defined('AREA')) {
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Panel
* @since 0.10.0
*
*
*/
use Froxlor\Database\Database;
@@ -176,7 +176,7 @@ if (!empty($success_message)) {
$tpl = 'user/table-note.html.twig';
}
UI::twigBuffer($tpl, [
UI::view($tpl, [
'listing' => \Froxlor\UI\Listing::formatFromArray($collection, $apikeys_list_data['apikeys_list']),
'actions_links' => (int)$userinfo['api_allowed'] == 1 ? [[
'href' => $linker->getLink(['section' => 'index', 'page' => $page, 'action' => 'add']),
@@ -186,4 +186,3 @@ UI::twigBuffer($tpl, [
'type' => 'success',
'alert_msg' => $success_message
]);
UI::twigOutputBuffer();