From 251c308d8ce943e61828747366a17168009d6cd3 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 20 Jun 2018 18:31:52 +0200 Subject: [PATCH] Fixed new servers (migration and autoprovision) icons --- .../godmode/servers/servers.build_table.php | 8 +++++--- pandora_console/images/autoprovision.png | Bin 0 -> 551 bytes pandora_console/images/migration.png | Bin 0 -> 407 bytes pandora_console/include/constants.php | 2 ++ pandora_console/include/functions_servers.php | 10 ++++++++++ 5 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 pandora_console/images/autoprovision.png create mode 100644 pandora_console/images/migration.png diff --git a/pandora_console/godmode/servers/servers.build_table.php b/pandora_console/godmode/servers/servers.build_table.php index eaeb612826..1090f76490 100644 --- a/pandora_console/godmode/servers/servers.build_table.php +++ b/pandora_console/godmode/servers/servers.build_table.php @@ -101,14 +101,16 @@ foreach ($servers as $server) { switch ($server['type']) { case "snmp": case "event": + case "autoprovision": + case "migration": $data[3] = $server["version"]; - $data[4] = 'N/A'; - $data[5] = 'N/A'; + $data[4] = __('N/A'); + $data[5] = __('N/A'); break; case "export": $data[3] = $server["version"]; $data[4] = $server["modules"] . " ".__('of')." ". $server["modules_total"]; - $data[5] = 'N/A'; + $data[5] = __('N/A'); break; default: $data[3] = $server["version"]; diff --git a/pandora_console/images/autoprovision.png b/pandora_console/images/autoprovision.png new file mode 100644 index 0000000000000000000000000000000000000000..d2fb85fb42e29cb4e0d00dfd83bf7a04a685fabc GIT binary patch literal 551 zcmV+?0@(eDP)(RCwBAU_b}<_Vx`Jf&c-8p+o?L zQ3OCVKmaj9Ip=}Y2Ot(Wc<`VhHtq9)_&gxdKM(dJ7Q4; z0tO(rG9gL4M`E9c#T?8-Oh_gQBD)D$3_X#+zy^H2-hiAQLGFSE85{rv7$c524}dC0 z2M>VGSwM7jLk%kcQvF0ElSZK7IExK*zxP8!4^%WbV#82*e|)Ky1&h}~iudEm4vo-E zhb*Q5jq?rIybnqgpmJqC9jNyLWMV9( z7z`vLrwSGvnn7N<2#aB8s_=(;GXbeE14Y~gf)NGH8i7a_7(fjKMWBP6oSe_2M~_-S p*$A6~*j)G@r9Q$FrcleU0st}At97Eb#J&Ik002ovPDHLkV1lm3$p-)c literal 0 HcmV?d00001 diff --git a/pandora_console/images/migration.png b/pandora_console/images/migration.png new file mode 100644 index 0000000000000000000000000000000000000000..06ed1fd83a6a4633ea81b5e2bde27e19e542587c GIT binary patch literal 407 zcmV;I0cie-P){y$s<$T0xX z00D%87=fbefph>6C!)vz1Q1SyZt{nN2M-G3)d3Jd#3M{s0|677fFRI9Mwpk*gD_q* z0Ro702Vet0Yd~R?55x{2KFAF)*Y1Z2VgV0;3Kc;N7N|fYlHw0Qd;q8*5U-nnHY5P? zd|dJX0W^S!5r=yPfK&lAxIpX;j7TXEl-?9@naBjC&*M>)2nu`_JkDwaDrkUluquQn zA#|&eBm|)`gwu^M#h{o8q$nH#0&M6YMoJ9;CIV2r8bDLWL|_ __('Autoprovision server'))); + $server["type"] = "autoprovision"; + $id_modulo = 0; + break; + case SERVER_TYPE_MIGRATION: + $server["img"] = html_print_image ("images/migration.png", true, array ("title" => __('Migration server'))); + $server["type"] = "migration"; + $id_modulo = 0; + break; default: $server["img"] = ''; $server["type"] = "unknown";