mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUACAMOLE-339: Display the remote host field in connection history tables.
This commit is contained in:
		| @@ -72,6 +72,7 @@ | ||||
|                     <th>{{'MANAGE_CONNECTION.TABLE_HEADER_HISTORY_USERNAME' | translate}}</th> | ||||
|                     <th>{{'MANAGE_CONNECTION.TABLE_HEADER_HISTORY_START' | translate}}</th> | ||||
|                     <th>{{'MANAGE_CONNECTION.TABLE_HEADER_HISTORY_DURATION' | translate}}</th> | ||||
|                     <th>{{'MANAGE_CONNECTION.TABLE_HEADER_HISTORY_REMOTEHOST' | translate}}</th> | ||||
|                 </tr> | ||||
|             </thead> | ||||
|             <tbody> | ||||
| @@ -81,6 +82,7 @@ | ||||
|                     <td class="duration" | ||||
|                         translate="{{wrapper.durationText}}" | ||||
|                         translate-values="{VALUE: wrapper.duration.value, UNIT: wrapper.duration.unit}"></td> | ||||
|                     <td class="remoteHost">{{wrapper.entry.remoteHost}}</td> | ||||
|                 </tr> | ||||
|             </tbody> | ||||
|         </table> | ||||
|   | ||||
| @@ -52,6 +52,13 @@ angular.module('rest').factory('ConnectionHistoryEntry', [function defineConnect | ||||
|          */ | ||||
|         this.connectionName = template.connectionName; | ||||
|  | ||||
|         /** | ||||
|          * The remote host associated with this history entry. | ||||
|          * | ||||
|          * @type String | ||||
|          */ | ||||
|         this.remoteHost = template.remoteHost; | ||||
|  | ||||
|         /** | ||||
|          * The time that usage began, in seconds since 1970-01-01 00:00:00 UTC. | ||||
|          * | ||||
| @@ -186,4 +193,4 @@ angular.module('rest').factory('ConnectionHistoryEntry', [function defineConnect | ||||
|  | ||||
|     return ConnectionHistoryEntry; | ||||
|  | ||||
| }]); | ||||
| }]); | ||||
|   | ||||
| @@ -84,7 +84,8 @@ angular.module('settings').directive('guacSettingsConnectionHistory', [function | ||||
|                 '-startDate', | ||||
|                 '-duration', | ||||
|                 'username', | ||||
|                 'connectionName' | ||||
|                 'connectionName', | ||||
|                 'remoteHost' | ||||
|             ]); | ||||
|  | ||||
|             // Get session date format | ||||
| @@ -192,6 +193,7 @@ angular.module('settings').directive('guacSettingsConnectionHistory', [function | ||||
|                     'SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_STARTDATE', | ||||
|                     'SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_DURATION', | ||||
|                     'SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_CONNECTION_NAME', | ||||
|                     'SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_REMOTEHOST', | ||||
|                     'SETTINGS_CONNECTION_HISTORY.FILENAME_HISTORY_CSV' | ||||
|                 ]).then(function headerTranslated(translations) { | ||||
|  | ||||
| @@ -200,7 +202,8 @@ angular.module('settings').directive('guacSettingsConnectionHistory', [function | ||||
|                         translations['SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_USERNAME'], | ||||
|                         translations['SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_STARTDATE'], | ||||
|                         translations['SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_DURATION'], | ||||
|                         translations['SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_CONNECTION_NAME'] | ||||
|                         translations['SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_CONNECTION_NAME'], | ||||
|                         translations['SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_REMOTEHOST'] | ||||
|                     ]]; | ||||
|  | ||||
|                     // Add rows for all history entries, using the same sort | ||||
| @@ -215,7 +218,8 @@ angular.module('settings').directive('guacSettingsConnectionHistory', [function | ||||
|                                 historyEntryWrapper.username, | ||||
|                                 $filter('date')(historyEntryWrapper.startDate, $scope.dateFormat), | ||||
|                                 historyEntryWrapper.duration / 1000, | ||||
|                                 historyEntryWrapper.connectionName | ||||
|                                 historyEntryWrapper.connectionName, | ||||
|                                 historyEntryWrapper.remoteHost | ||||
|                             ]); | ||||
|                         } | ||||
|                     ); | ||||
|   | ||||
| @@ -29,6 +29,9 @@ | ||||
|                     <th guac-sort-order="order" guac-sort-property="'connectionName'"> | ||||
|                         {{'SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_CONNECTION_NAME' | translate}} | ||||
|                     </th> | ||||
|                     <th guac-sort-order="order" guac-sort-property="'remoteHost'"> | ||||
|                         {{'SETTINGS_CONNECTION_HISTORY.TABLE_HEADER_SESSION_REMOTEHOST' | translate}} | ||||
|                     </th> | ||||
|                 </tr> | ||||
|             </thead> | ||||
|             <tbody ng-class="{loading: !isLoaded()}"> | ||||
| @@ -38,6 +41,7 @@ | ||||
|                     <td translate="{{historyEntryWrapper.readableDurationText}}" | ||||
|                         translate-values="{VALUE: historyEntryWrapper.readableDuration.value, UNIT: historyEntryWrapper.readableDuration.unit}"></td> | ||||
|                     <td>{{historyEntryWrapper.connectionName}}</td> | ||||
|                     <td>{{historyEntryWrapper.remoteHost}}</td> | ||||
|                 </tr> | ||||
|             </tbody> | ||||
|         </table> | ||||
|   | ||||
| @@ -50,6 +50,13 @@ angular.module('settings').factory('ConnectionHistoryEntryWrapper', ['$injector' | ||||
|          */ | ||||
|         this.connectionName = historyEntry.connectionName; | ||||
|  | ||||
|         /** | ||||
|          * The remote host associated with this history entry. | ||||
|          * | ||||
|          * @type String | ||||
|          */ | ||||
|         this.remoteHost = historyEntry.remoteHost; | ||||
|  | ||||
|         /** | ||||
|          * The username of the user associated with this particular usage of | ||||
|          * the connection. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user