Эх сурвалжийг харах

Add progress bar to system status dashboard (#7131)

* Add progress bar to system status dashboard

* Update dashboard_edit.php

* Update app_languages.php

* Update config.php
Alex 1 жил өмнө
parent
commit
8269d29146

+ 55 - 1
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'] = "가치 교환";
 
-?>
+$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'] = "시스템 상태";
+
+?>

+ 4 - 0
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 "	<select name='dashboard_chart_type' class='formfld'>\n";
 		echo "		<option value='doughnut'>".$text['label-doughnut']."</option>\n";
 		echo "		<option value='number' ".(!empty($dashboard_chart_type) && $dashboard_chart_type == "number" ? "selected='selected'" : null).">".$text['label-number']."</option>\n";
+		if ($dashboard_path == "system/system_status") {
+			echo "		<option value='progress_bar' ".(!empty($dashboard_chart_type) && $dashboard_chart_type == "progress_bar" ? "selected='selected'" : null).">".$text['label-progress_bar']."</option>\n";
+		}
 		echo "	</select>\n";
 		echo "<br />\n";
 		echo $text['description-dashboard_chart_type']."\n";