diff --git a/app/system/resources/dashboard/config.php b/app/system/resources/dashboard/config.php index 747d483877..5e92471910 100644 --- a/app/system/resources/dashboard/config.php +++ b/app/system/resources/dashboard/config.php @@ -1,15 +1,17 @@ \n"; - echo " ".$text['label-disk_usage']."\n"; + echo " ".$text['label-system_status']."\n"; if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") { ?> @@ -97,6 +97,20 @@ if ($dashboard_chart_type == "number") { echo " ".round($percent_disk_usage)."%"; } + if ($dashboard_chart_type == "progress_bar") { + echo " ".$text['label-disk_usage']."\n"; + echo "
\n"; + echo "
get('theme', 'dashboard_disk_usage_chart_main_color') ?? '#03c04a').";'>".round($percent_disk_usage)."%
\n"; + echo "
\n"; + } + /* + if ($dashboard_chart_type == "progress_bar") { + echo " ".$text['label-cpu_usage']."\n"; + echo "
\n"; + echo "
get('theme', 'dashboard_cpu_usage_chart_main_color') ?? '#03c04a').";'>".round($percent_cpu)."%
\n"; + echo "
\n"; + } + */ echo " \n"; } } diff --git a/core/dashboard/app_languages.php b/core/dashboard/app_languages.php index 770f5d77d4..0aaae6ed54 100644 --- a/core/dashboard/app_languages.php +++ b/core/dashboard/app_languages.php @@ -486,6 +486,33 @@ $text['label-doughnut']['zh-cn'] = "油炸圈饼"; $text['label-doughnut']['ja-jp'] = "ドーナツ"; $text['label-doughnut']['ko-kr'] = "도넛"; +$text['label-progress_bar']['en-us'] = "Progress Bar"; +$text['label-progress_bar']['en-gb'] = "Progress Bar"; +$text['label-progress_bar']['ar-eg'] = ""; +$text['label-progress_bar']['de-at'] = ""; +$text['label-progress_bar']['de-ch'] = ""; +$text['label-progress_bar']['de-de'] = ""; +$text['label-progress_bar']['el-gr'] = ""; +$text['label-progress_bar']['es-cl'] = ""; +$text['label-progress_bar']['es-mx'] = ""; +$text['label-progress_bar']['fr-ca'] = ""; +$text['label-progress_bar']['fr-fr'] = ""; +$text['label-progress_bar']['he-il'] = ""; +$text['label-progress_bar']['it-it'] = ""; +$text['label-progress_bar']['ka-ge'] = ""; +$text['label-progress_bar']['nl-nl'] = ""; +$text['label-progress_bar']['pl-pl'] = ""; +$text['label-progress_bar']['pt-br'] = ""; +$text['label-progress_bar']['pt-pt'] = ""; +$text['label-progress_bar']['ro-ro'] = ""; +$text['label-progress_bar']['ru-ru'] = ""; +$text['label-progress_bar']['sv-se'] = ""; +$text['label-progress_bar']['uk-ua'] = ""; +$text['label-progress_bar']['tr-tr'] = ""; +$text['label-progress_bar']['zh-cn'] = ""; +$text['label-progress_bar']['ja-jp'] = ""; +$text['label-progress_bar']['ko-kr'] = ""; + $text['label-dashboard_label_enabled']['en-us'] = "Label Enabled"; $text['label-dashboard_label_enabled']['en-gb'] = "Label Enabled"; $text['label-dashboard_label_enabled']['ar-eg'] = "تم تمكين العلامة"; @@ -1694,4 +1721,31 @@ $text['button-swap']['zh-cn'] = "交换值"; $text['button-swap']['ja-jp'] = "スワップ値"; $text['button-swap']['ko-kr'] = "가치 교환"; -?> \ No newline at end of file +$text['label-system_status']['en-us'] = "System Status"; +$text['label-system_status']['en-gb'] = "System Status"; +$text['label-system_status']['ar-eg'] = "حالة النظام"; +$text['label-system_status']['de-at'] = "System Status"; +$text['label-system_status']['de-ch'] = "System Status"; +$text['label-system_status']['de-de'] = "System Status"; +$text['label-system_status']['el-gr'] = "Κατάσταση συστήματος"; +$text['label-system_status']['es-cl'] = "Estado del Sistema"; +$text['label-system_status']['es-mx'] = "Estado del Sistema"; +$text['label-system_status']['fr-ca'] = "État du Système"; +$text['label-system_status']['fr-fr'] = "État du Système"; +$text['label-system_status']['he-il'] = "מצב מערכת"; +$text['label-system_status']['it-it'] = "Stato Sistema"; +$text['label-system_status']['ka-ge'] = "სისტემის სტატუსი"; +$text['label-system_status']['nl-nl'] = "Systeem Status"; +$text['label-system_status']['pl-pl'] = "Stan systemu"; +$text['label-system_status']['pt-br'] = "Status do sistema"; +$text['label-system_status']['pt-pt'] = "Status do Sistema"; +$text['label-system_status']['ro-ro'] = "Starea sistemului"; +$text['label-system_status']['ru-ru'] = "Статус Системы"; +$text['label-system_status']['sv-se'] = "System Status"; +$text['label-system_status']['uk-ua'] = "Стан системи "; +$text['label-system_status']['tr-tr'] = "Sistem durumu"; +$text['label-system_status']['zh-cn'] = "系统状况"; +$text['label-system_status']['ja-jp'] = "システムステータス"; +$text['label-system_status']['ko-kr'] = "시스템 상태"; + +?> diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php index d307642a17..5f3e5a6c95 100644 --- a/core/dashboard/dashboard_edit.php +++ b/core/dashboard/dashboard_edit.php @@ -802,6 +802,7 @@ $dashboard_path == "xml_cdr/recent_calls" || $dashboard_path == "system/system_status" || $dashboard_path == "system/system_cpu_status" || + $dashboard_path == "system/system_disk_usage" || $dashboard_path == "system/system_counts" || $dashboard_path == "switch/switch_status" || $dashboard_path == "domain_limits/domain_limits" || @@ -818,6 +819,9 @@ echo " \n"; echo "
\n"; echo $text['description-dashboard_chart_type']."\n";