From 990e8031921823e9a4d745326ed53561479747c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 29 Jan 2021 15:19:05 +0100 Subject: [PATCH] Optionally show all fields of AN statsping in admin area --- www/commands/alephnote_show.php | 66 ++++++++++++++++++++++++++------- www/data/css/styles.css | 4 ++ www/data/css/styles.min.css | 1 + www/data/css/styles_admin.scss | 4 ++ www/pages/admin.php | 3 +- 5 files changed, 63 insertions(+), 15 deletions(-) diff --git a/www/commands/alephnote_show.php b/www/commands/alephnote_show.php index aa2c36d..a4942c1 100644 --- a/www/commands/alephnote_show.php +++ b/www/commands/alephnote_show.php @@ -5,30 +5,68 @@ require_once (__DIR__ . '/../internals/website.php'); /** @var URLRoute $ROUTE */ global $ROUTE; /** @var Website $SITE */ global $SITE; +$mode = isset($_GET['mode']) ? $_GET['mode'] : ''; + ?>
- - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + modules->AlephNoteStatistics()->getAllActiveEntriesOrdered() as $entry): ?> - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/data/css/styles.css b/www/data/css/styles.css index d4c6bd0..70980b1 100644 --- a/www/data/css/styles.css +++ b/www/data/css/styles.css @@ -991,6 +991,10 @@ html, body { color: #FF0000; } +.admin_ajax_gitfield { + white-space: pre; +} + #loginform div { display: flex; flex-direction: column; diff --git a/www/data/css/styles.min.css b/www/data/css/styles.min.css index 4c58b35..1a98af9 100644 --- a/www/data/css/styles.min.css +++ b/www/data/css/styles.min.css @@ -189,6 +189,7 @@ html,body{margin:0;padding:0;height:100%} .boxedcontent.successbox{background-color:#168b00;color:#222;border:1px solid #444;font-weight:bold;text-align:center} .boxedcontent.successbox .bc_data{padding-top:2px;padding-bottom:2px} .admin_ajax_gitfield_error{color:red} +.admin_ajax_gitfield{white-space:pre} #loginform div{display:flex;flex-direction:column} #loginform div button{margin:10px 0;padding:0} .loginerror{display:flex;background:#f44;color:#222;border:1px solid #a44;border-radius:2px;font-weight:bold;padding:0 5px;margin:5px 0 20px 0} diff --git a/www/data/css/styles_admin.scss b/www/data/css/styles_admin.scss index 687f1d3..46fd2f5 100644 --- a/www/data/css/styles_admin.scss +++ b/www/data/css/styles_admin.scss @@ -139,4 +139,8 @@ .admin_ajax_gitfield_error { color: $COL_ADMIN_ERROR; +} + +.admin_ajax_gitfield { + white-space: pre; } \ No newline at end of file diff --git a/www/pages/admin.php b/www/pages/admin.php index a379f53..9f714ac 100644 --- a/www/pages/admin.php +++ b/www/pages/admin.php @@ -119,7 +119,8 @@ $connected = true; try { $SITE->modules->Database(); } catch (Exception $e) { $c
- Show + Show (short) + Show (full)
Database not connected.
ClientIDVersionProviderNoteCountLastChangedCreatedAtCommentVersionProviderNoteCountLastChangedCreatedAtCommentClientIDVersionProviderNoteCountLastChangedCreatedAtCommentRawFolderRepoRawFolderRepoModeGitMirrorGitMirrorPushThemeLaunchOnBootEmulateHierarchicalStructureHasEditedAdvancedSettingsAdvancedSettingsDiff