- Timestamp:
- 07/01/15 11:24:12 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
/trunk/sources merged: 12552-12553,12556-12557
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/status/status.cshtml
r12551 r12558 216 216 </div> 217 217 <div class="panel-body"> 218 <table class="table table-hover" >218 <table class="table table-hover" ts-wrapper> 219 219 <thead> 220 <tr>221 <th>Username</th>222 <th>Calculating Tasks</th>223 <th>Waiting Tasks</th>224 </tr>220 <tr> 221 <th ts-criteria="User.Name">Username</th> 222 <th ts-criteria="CalculatingTasks|parseInt">Calculating Tasks</th> 223 <th ts-criteria="WaitingTasks|parseInt">Waiting Tasks</th> 224 </tr> 225 225 </thead> 226 <tr ng-repeat="task in status.TasksStatus"> 227 <td>{{task.User.Name}}</td> 228 <td>{{task.CalculatingTasks | number}}</td> 229 <td>{{task.WaitingTasks | number}}</td> 230 </tr> 231 <tr ng-hide="status.TasksStatus.length"> 232 <td colspan="3" class="text-center"> 233 There are no waiting or calculating tasks available! 234 </td> 235 </tr> 226 <tbody> 227 <tr ng-repeat="task in status.TasksStatus" ts-repeat> 228 <td>{{task.User.Name}}</td> 229 <td>{{task.CalculatingTasks | number}}</td> 230 <td>{{task.WaitingTasks | number}}</td> 231 </tr> 232 <tr ng-hide="status.TasksStatus.length"> 233 <td colspan="3" class="text-center"> 234 There are no waiting or calculating tasks available! 235 </td> 236 </tr> 237 </tbody> 236 238 </table> 237 239 </div> … … 254 256 class="panel-collapse collapse in"> 255 257 <div class="panel-body"> 256 <table class="table table-hover" >258 <table class="table table-hover" ts-wrapper> 257 259 <thead> 258 <tr> 259 <th ng-click="activeCalculatingSlavesOrderColumn='Slave.Name'; 260 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 261 Slave 262 </th> 263 <th ng-click="activeCalculatingSlavesOrderColumn='CpuUtilization'; 264 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 265 CPU Utilization 266 </th> 267 <th ng-click="activeCalculatingSlavesOrderColumn='Cores'; 268 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 269 Cores 270 </th> 271 <th ng-click="activeCalculatingSlavesOrderColumn='Memory'; 272 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 273 Memory 274 </th> 275 </tr> 260 <tr> 261 <th ts-criteria="Slave.Name">Slave</th> 262 <th ts-criteria="CpuUtilization|parseFloat">CPU Utilization</th> 263 <th ts-criteria="Cores|parseInt">Cores</th> 264 <th ts-criteria="Memory|parseInt">Memory</th> 265 </tr> 276 266 </thead> 277 <tr ng-repeat="slave in activeCalculatingSlaves = (status.SlavesStatus 267 <tbody> 268 <tr ng-repeat="slave in activeCalculatingSlaves = (status.SlavesStatus 278 269 | filter: { 279 270 IsAllowedToCalculate: true, 280 271 State: 'Calculating' 281 } 282 | orderBy: activeCalculatingSlavesOrderColumn:activeCalculatingSlavesReverseSort)">283 <td>{{slave.Slave.Name}}</td>284 <td>{{slave.CpuUtilization | number: 2}} %</td>285 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td>286 < td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td>287 </tr>288 <tr ng-hide="activeCalculatingSlaves.length">289 <td colspan="4" class="text-center">290 There are no active calculating slaves available!291 </t d>292 </t r>272 })" ts-repeat> 273 <td>{{slave.Slave.Name}}</td> 274 <td>{{slave.CpuUtilization | number: 2}} %</td> 275 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td> 276 <td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td> 277 </tr> 278 <tr ng-hide="activeCalculatingSlaves.length"> 279 <td colspan="4" class="text-center"> 280 There are no active calculating slaves available! 281 </td> 282 </tr> 283 </tbody> 293 284 </table> 294 285 </div> … … 312 303 class="panel-collapse collapse"> 313 304 <div class="panel-body"> 314 <table class="table table-hover" >305 <table class="table table-hover" ts-wrapper> 315 306 <thead> 316 307 <tr> 317 <th ng-click="activeIdleSlavesOrderColumn='Slave.Name'; 318 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 319 Slave 320 </th> 321 <th ng-click="activeIdleSlavesOrderColumn='CpuUtilization'; 322 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 323 CPU Utilization 324 </th> 325 <th ng-click="activeIdleSlavesOrderColumn='Cores'; 326 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 327 Cores 328 </th> 329 <th ng-click="activeIdleSlavesOrderColumn='Memory'; 330 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 331 Memory 332 </th> 308 <th ts-criteria="Slave.Name">Slave</th> 309 <th ts-criteria="CpuUtilization|parseFloat">CPU Utilization</th> 310 <th ts-criteria="Cores|parseInt">Cores</th> 311 <th ts-criteria="Memory|parseInt">Memory</th> 333 312 </tr> 334 313 </thead> 335 <tr ng-repeat="slave in activeIdleSlaves = (status.SlavesStatus 314 <tbody> 315 <tr ng-repeat="slave in activeIdleSlaves = (status.SlavesStatus 336 316 | filter: { 337 317 IsAllowedToCalculate: true, 338 318 State: 'Idle' 339 } 340 | orderBy: activeIdleSlavesOrderColumn:activeIdleSlavesReverseSort)">341 <td>{{slave.Slave.Name}}</td>342 <td>{{slave.CpuUtilization | number: 2}} %</td>343 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td>344 < td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td>345 </tr>346 <tr ng-hide="activeIdleSlaves.length">347 <td colspan="4" class="text-center">348 There are no active idle slaves available!349 < td>350 </t r>319 })" ts-repeat> 320 <td>{{slave.Slave.Name}}</td> 321 <td>{{slave.CpuUtilization | number: 2}} %</td> 322 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td> 323 <td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td> 324 </tr> 325 <tr ng-hide="activeIdleSlaves.length"> 326 <td colspan="4" class="text-center"> 327 There are no active idle slaves available! 328 <td> 329 </tr> 330 </tbody> 351 331 </table> 352 332 </div> … … 370 350 class="panel-collapse collapse"> 371 351 <div class="panel-body"> 372 <table class="table table-hover" >352 <table class="table table-hover" ts-wrapper> 373 353 <thead> 374 <tr> 375 <th ng-click="inactiveSlavesOrderColumn='Slave.Name'; 376 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 377 Slave 378 </th> 379 <th ng-click="inactiveSlavesOrderColumn='CpuUtilization'; 380 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 381 CPU Utilization 382 </th> 383 <th ng-click="inactiveSlavesOrderColumn='Cores'; 384 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 385 Cores 386 </th> 387 <th ng-click="inactiveSlavesOrderColumn='Memory'; 388 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 389 Memory 390 </th> 391 </tr> 354 <tr> 355 <th ts-criteria="Slave.Name">Slave</th> 356 <th ts-criteria="CpuUtilization|parseFloat">CPU Utilization</th> 357 <th ts-criteria="Cores|parseInt">Cores</th> 358 <th ts-criteria="Memory|parseInt">Memory</th> 359 </tr> 392 360 </thead> 393 <tr ng-repeat="slave in inactiveSlaves = (status.SlavesStatus 361 <tbody> 362 <tr ng-repeat="slave in inactiveSlaves = (status.SlavesStatus 394 363 | filter: { 395 364 IsAllowedToCalculate: false 396 } 397 | orderBy: inactiveSlavesOrderColumn:inactiveSlavesReverseSort)">398 <td>{{slave.Slave.Name}}</td>399 <td>{{slave.CpuUtilization | number: 2}} %</td>400 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td>401 < td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td>402 </tr>403 <tr ng-hide="inactiveSlaves.length">404 < td colspan="4" class="text-center">No inactive slaves available!</td>405 </t r>365 })" ts-repeat> 366 <td>{{slave.Slave.Name}}</td> 367 <td>{{slave.CpuUtilization | number: 2}} %</td> 368 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td> 369 <td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td> 370 </tr> 371 <tr ng-hide="inactiveSlaves.length"> 372 <td colspan="4" class="text-center">No inactive slaves available!</td> 373 </tr> 374 </tbody> 406 375 </table> 407 376 </div> -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/status/statusCtrl.js
r12551 r12558 84 84 CalculatingTasks: 0 85 85 }; 86 87 $scope.activeIdleSlaveFilter = function (slave) {88 return (slave.IsAllowedToCalculate == true) && (slave.State == 'Idle');89 };90 91 $scope.activeCalculatingSlavesReverseSort = false;92 $scope.activeCalculatingSlavesOrderColumn = 'slave.Slave.Name';93 94 $scope.activeIdleSlavesReverseSort = false;95 $scope.activeIdleSlavesOrderColumn = 'slave.Slave.Name';96 97 $scope.inactiveSlavesReverseSort = false;98 $scope.inactiveSlavesOrderColumn = 'slave.Slave.Name';99 100 86 101 87 var updateStatus = function () {
Note: See TracChangeset
for help on using the changeset viewer.