Ver código fonte

added project name in Storage table list

Piotr Labudda 8 anos atrás
pai
commit
1d9da7c888
1 arquivos alterados com 7 adições e 3 exclusões
  1. 7 3
      SE/se-lib/Route/Storage.php

+ 7 - 3
SE/se-lib/Route/Storage.php

@@ -186,12 +186,16 @@ class Route_Storage extends RouteBase {
 			$thisGetLink = array($this, 'getLink');
 			UI::table([
 				'caption' => "Obiekty w bazie '{$sourceItem['name']}' " .
-					UI::hButtonPost('<i class="glyphicon glyphicon-refresh"></i>' . " odśwież", [
-						'class' => "btn btn-xs btn-link",
+					UI::hButtonPost('<i class="glyphicon glyphicon-refresh"></i>' . " odśwież listę", [
+						'class' => "btn btn-link",
 						'data' => [
 							'refreshObjectList' => '1'
 						]
-					]),
+					]) . (
+						($projectName = Config::getProjectName())
+						? " <i>project({$projectName})</i>"
+						: ''
+					),
 				'rows' => array_map(function ($item) use ($idStorage, $thisGetLink) {
 					$typeName = $item['typeName']; // $typeName = Api_WfsNs::typeName($item['namespace']);
 					return [