mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUAC-1172: Implement navigation via breadcrumbs - no more tree.
This commit is contained in:
		| @@ -174,6 +174,12 @@ | ||||
|                 <button class="back" ng-click="hideFilesystemMenu()">Back</button> | ||||
|             </div> | ||||
|  | ||||
|             <!-- Breadcrumbs --> | ||||
|             <div class="header breadcrumbs" ng-show="getPath(filesystemMenuContents.currentDirectory).length"> | ||||
|                 <div class="breadcrumb" ng-repeat="file in getPath(filesystemMenuContents.currentDirectory)" | ||||
|                         ng-click="changeDirectory(filesystemMenuContents, file)">{{file.name}}</div> | ||||
|             </div> | ||||
|  | ||||
|             <!-- Scrollable body --> | ||||
|             <div class="menu-body"> | ||||
|                 <guac-file-browser client="client" filesystem="filesystemMenuContents"></guac-file-browser> | ||||
|   | ||||
| @@ -32,27 +32,32 @@ | ||||
|         </div> | ||||
|  | ||||
|         <!-- Directory --> | ||||
|         <div class="directory" ng-show="isDirectory(file)" ng-class="{expanded: file.expanded}"> | ||||
|             <div class="caption" ng-click="toggleExpanded(file)"> | ||||
|         <div class="directory" ng-show="isDirectory(file)"> | ||||
|             <div class="caption" ng-click="changeDirectory(file)"> | ||||
|                 <div class="icon"></div> | ||||
|                 {{file.name}} | ||||
|             </div> | ||||
|  | ||||
|             <!-- Children of this directory --> | ||||
|             <div class="children"> | ||||
|                 <div class="list-item" | ||||
|                      ng-repeat="file in file.files | orderBy : 'name'" | ||||
|                      ng-include="'file.html'"> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|     </script> | ||||
|  | ||||
|     <!-- Root directory contents --> | ||||
|     <!-- Current directory contents --> | ||||
|     <div class="filesystem-root"> | ||||
|  | ||||
|         <!-- Parent directory --> | ||||
|         <div class="list-item" ng-show="filesystem.currentDirectory.parent"> | ||||
|             <div class="directory previous"> | ||||
|                 <div class="caption" ng-click="changeDirectory(filesystem.currentDirectory.parent)"> | ||||
|                     <div class="icon"></div> .. | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|         <!-- All other files --> | ||||
|         <div class="list-item" | ||||
|              ng-repeat="file in filesystem.root.files | orderBy : 'name'" | ||||
|              ng-repeat="file in filesystem.currentDirectory.files | orderBy : 'name'" | ||||
|              ng-include="'file.html'"></div> | ||||
|  | ||||
|     </div> | ||||
|  | ||||
| </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user