Changeset 12557
- Timestamp:
- 07/01/15 10:58:26 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/status/status.cshtml
r12546 r12557 166 166 </div> 167 167 <div class="panel-body"> 168 <table class="table table-hover" >168 <table class="table table-hover" ts-wrapper> 169 169 <thead> 170 <tr>171 <th>Username</th>172 <th>Calculating Tasks</th>173 <th>Waiting Tasks</th>174 </tr>170 <tr> 171 <th ts-criteria="User.Name">Username</th> 172 <th ts-criteria="CalculatingTasks|parseInt">Calculating Tasks</th> 173 <th ts-criteria="WaitingTasks|parseInt">Waiting Tasks</th> 174 </tr> 175 175 </thead> 176 <tr ng-repeat="task in status.TasksStatus"> 177 <td>{{task.User.Name}}</td> 178 <td>{{task.CalculatingTasks | number}}</td> 179 <td>{{task.WaitingTasks | number}}</td> 180 </tr> 181 <tr ng-hide="status.TasksStatus.length"> 182 <td colspan="3" class="text-center"> 183 There are no waiting or calculating tasks available! 184 </td> 185 </tr> 176 <tbody> 177 <tr ng-repeat="task in status.TasksStatus" ts-repeat> 178 <td>{{task.User.Name}}</td> 179 <td>{{task.CalculatingTasks | number}}</td> 180 <td>{{task.WaitingTasks | number}}</td> 181 </tr> 182 <tr ng-hide="status.TasksStatus.length"> 183 <td colspan="3" class="text-center"> 184 There are no waiting or calculating tasks available! 185 </td> 186 </tr> 187 </tbody> 186 188 </table> 187 189 </div> … … 204 206 class="panel-collapse collapse in"> 205 207 <div class="panel-body"> 206 <table class="table table-hover" >208 <table class="table table-hover" ts-wrapper> 207 209 <thead> 208 <tr> 209 <th ng-click="activeCalculatingSlavesOrderColumn='Slave.Name'; 210 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 211 Slave 212 </th> 213 <th ng-click="activeCalculatingSlavesOrderColumn='CpuUtilization'; 214 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 215 CPU Utilization 216 </th> 217 <th ng-click="activeCalculatingSlavesOrderColumn='Cores'; 218 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 219 Cores 220 </th> 221 <th ng-click="activeCalculatingSlavesOrderColumn='Memory'; 222 activeCalculatingSlavesReverseSort=!activeCalculatingSlavesReverseSort"> 223 Memory 224 </th> 225 </tr> 210 <tr> 211 <th ts-criteria="Slave.Name">Slave</th> 212 <th ts-criteria="CpuUtilization|parseFloat">CPU Utilization</th> 213 <th ts-criteria="Cores|parseInt">Cores</th> 214 <th ts-criteria="Memory|parseInt">Memory</th> 215 </tr> 226 216 </thead> 227 <tr ng-repeat="slave in activeCalculatingSlaves = (status.SlavesStatus 217 <tbody> 218 <tr ng-repeat="slave in activeCalculatingSlaves = (status.SlavesStatus 228 219 | filter: { 229 220 IsAllowedToCalculate: true, 230 221 State: 'Calculating' 231 } 232 | orderBy: activeCalculatingSlavesOrderColumn:activeCalculatingSlavesReverseSort)">233 <td>{{slave.Slave.Name}}</td>234 <td>{{slave.CpuUtilization | number: 2}} %</td>235 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td>236 < td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td>237 </tr>238 <tr ng-hide="activeCalculatingSlaves.length">239 <td colspan="4" class="text-center">240 There are no active calculating slaves available!241 </t d>242 </t r>222 })" ts-repeat> 223 <td>{{slave.Slave.Name}}</td> 224 <td>{{slave.CpuUtilization | number: 2}} %</td> 225 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td> 226 <td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td> 227 </tr> 228 <tr ng-hide="activeCalculatingSlaves.length"> 229 <td colspan="4" class="text-center"> 230 There are no active calculating slaves available! 231 </td> 232 </tr> 233 </tbody> 243 234 </table> 244 235 </div> … … 262 253 class="panel-collapse collapse"> 263 254 <div class="panel-body"> 264 <table class="table table-hover" >255 <table class="table table-hover" ts-wrapper> 265 256 <thead> 266 257 <tr> 267 <th ng-click="activeIdleSlavesOrderColumn='Slave.Name'; 268 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 269 Slave 270 </th> 271 <th ng-click="activeIdleSlavesOrderColumn='CpuUtilization'; 272 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 273 CPU Utilization 274 </th> 275 <th ng-click="activeIdleSlavesOrderColumn='Cores'; 276 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 277 Cores 278 </th> 279 <th ng-click="activeIdleSlavesOrderColumn='Memory'; 280 activeIdleSlavesReverseSort=!activeIdleSlavesReverseSort"> 281 Memory 282 </th> 258 <th ts-criteria="Slave.Name">Slave</th> 259 <th ts-criteria="CpuUtilization|parseFloat">CPU Utilization</th> 260 <th ts-criteria="Cores|parseInt">Cores</th> 261 <th ts-criteria="Memory|parseInt">Memory</th> 283 262 </tr> 284 263 </thead> 285 <tr ng-repeat="slave in activeIdleSlaves = (status.SlavesStatus 264 <tbody> 265 <tr ng-repeat="slave in activeIdleSlaves = (status.SlavesStatus 286 266 | filter: { 287 267 IsAllowedToCalculate: true, 288 268 State: 'Idle' 289 } 290 | orderBy: activeIdleSlavesOrderColumn:activeIdleSlavesReverseSort)">291 <td>{{slave.Slave.Name}}</td>292 <td>{{slave.CpuUtilization | number: 2}} %</td>293 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td>294 < td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td>295 </tr>296 <tr ng-hide="activeIdleSlaves.length">297 <td colspan="4" class="text-center">298 There are no active idle slaves available!299 < td>300 </t r>269 })" ts-repeat> 270 <td>{{slave.Slave.Name}}</td> 271 <td>{{slave.CpuUtilization | number: 2}} %</td> 272 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td> 273 <td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td> 274 </tr> 275 <tr ng-hide="activeIdleSlaves.length"> 276 <td colspan="4" class="text-center"> 277 There are no active idle slaves available! 278 <td> 279 </tr> 280 </tbody> 301 281 </table> 302 282 </div> … … 320 300 class="panel-collapse collapse"> 321 301 <div class="panel-body"> 322 <table class="table table-hover" >302 <table class="table table-hover" ts-wrapper> 323 303 <thead> 324 <tr> 325 <th ng-click="inactiveSlavesOrderColumn='Slave.Name'; 326 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 327 Slave 328 </th> 329 <th ng-click="inactiveSlavesOrderColumn='CpuUtilization'; 330 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 331 CPU Utilization 332 </th> 333 <th ng-click="inactiveSlavesOrderColumn='Cores'; 334 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 335 Cores 336 </th> 337 <th ng-click="inactiveSlavesOrderColumn='Memory'; 338 inactiveSlavesReverseSort=!inactiveSlavesReverseSort"> 339 Memory 340 </th> 341 </tr> 304 <tr> 305 <th ts-criteria="Slave.Name">Slave</th> 306 <th ts-criteria="CpuUtilization|parseFloat">CPU Utilization</th> 307 <th ts-criteria="Cores|parseInt">Cores</th> 308 <th ts-criteria="Memory|parseInt">Memory</th> 309 </tr> 342 310 </thead> 343 <tr ng-repeat="slave in inactiveSlaves = (status.SlavesStatus 311 <tbody> 312 <tr ng-repeat="slave in inactiveSlaves = (status.SlavesStatus 344 313 | filter: { 345 314 IsAllowedToCalculate: false 346 } 347 | orderBy: inactiveSlavesOrderColumn:inactiveSlavesReverseSort)">348 <td>{{slave.Slave.Name}}</td>349 <td>{{slave.CpuUtilization | number: 2}} %</td>350 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td>351 < td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td>352 </tr>353 <tr ng-hide="inactiveSlaves.length">354 < td colspan="4" class="text-center">No inactive slaves available!</td>355 </t r>315 })" ts-repeat> 316 <td>{{slave.Slave.Name}}</td> 317 <td>{{slave.CpuUtilization | number: 2}} %</td> 318 <td>{{slave.Cores - slave.FreeCores | number}} / {{slave.Cores | number}}</td> 319 <td>{{slave.Memory - slave.FreeMemory | kbToGB}} / {{slave.Memory | kbToGB}} GB</td> 320 </tr> 321 <tr ng-hide="inactiveSlaves.length"> 322 <td colspan="4" class="text-center">No inactive slaves available!</td> 323 </tr> 324 </tbody> 356 325 </table> 357 326 </div> -
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/status/statusCtrl.js
r12546 r12557 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 () { -
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/status.js
r12428 r12557 2 2 (function () { 3 3 var plugin = appStatusPlugin; 4 plugin.dependencies = ['ngResource', 'ui.knob', 'ui.bootstrap' ];4 plugin.dependencies = ['ngResource', 'ui.knob', 'ui.bootstrap', 'tableSort']; 5 5 plugin.files = [ 6 6 'WebApp/status.css', … … 15 15 ]; 16 16 var menu = app.getMenu(); 17 var section = menu.getSection('Men ü', 1);17 var section = menu.getSection('Menu', 1); 18 18 section.addEntry({ 19 19 name: 'Status', -
trunk/sources/HeuristicLab.Services.WebApp/3.3/Configs/BundleConfig.cs
r12546 r12557 41 41 "~/WebApp/libs/bootstrap/css/bootstrap-theme.min.css", 42 42 "~/WebApp/libs/font-aweseome/font-aweseome.min.css", 43 "~/WebApp/libs/angularjs/loading-bar/loading-bar.css" 43 "~/WebApp/libs/angularjs/loading-bar/loading-bar.css", 44 "~/WebApp/libs/angularjs/angular-tablesort/tablesort.css" 44 45 )); 45 46 … … 70 71 "~/WebApp/libs/angularjs/angular-ui-router.min.js", 71 72 "~/WebApp/libs/angularjs/angular-knob/angular-knob.js", 73 "~/WebApp/libs/angularjs/angular-tablesort/angular-tablesort.js", 72 74 "~/WebApp/libs/angularjs/angular-ui/ui-bootstrap-tpls-0.13.0.min.js", 73 75 "~/WebApp/libs/angularjs/loading-bar/loading-bar.js", -
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/plugins/about/about.js
r12546 r12557 9 9 10 10 var menu = app.getMenu(); 11 var section = menu.getSection('Men ü', -1);11 var section = menu.getSection('Menu', -1); 12 12 section.addEntry({ 13 13 index: 10000, -
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/plugins/plugins/plugins.cshtml
r12523 r12557 16 16 </div> 17 17 <div class="panel-body"> 18 <table class="table table-hover table-condensed" >18 <table class="table table-hover table-condensed" ts-wrapper> 19 19 <thead> 20 20 <tr> 21 21 <th>#</th> 22 <th >Name</th>23 <th >Assembly</th>24 <th >Last reload</th>22 <th ts-criteria="Name">Name</th> 23 <th ts-criteria ="AssemblyName">Assembly</th> 24 <th ts-criteria="LastReload">Last reload</th> 25 25 <th>Status</th> 26 26 <th></th> 27 27 </tr> 28 28 </thead> 29 <tr ng-repeat="plugin in plugins"> 30 <td>{{$index + 1}}</td> 31 <td>{{plugin.Name}}</td> 32 <td>{{plugin.AssemblyName}}</td> 33 <td>{{plugin.LastReload}}</td> 34 <td> 35 <span ng-hide="plugin.Exception" class="glyphicon glyphicon glyphicon-ok" style="color: green"></span> 36 <span ng-show="plugin.Exception" class="glyphicon glyphicon glyphicon-remove" style="color: darkred" 37 ng-click="open(plugin.Name, plugin.Exception)"></span> 38 </td> 39 <td> 40 <a ng-href="" data-ng-click="reloadPlugin(plugin.Name)">Reload</a> 41 </td> 42 </tr> 29 <tbody> 30 <tr ng-repeat="plugin in plugins" ts-repeat> 31 <td>{{$index + 1}}</td> 32 <td>{{plugin.Name}}</td> 33 <td>{{plugin.AssemblyName}}</td> 34 <td>{{plugin.LastReload}}</td> 35 <td> 36 <span ng-hide="plugin.Exception" class="glyphicon glyphicon glyphicon-ok" style="color: green"></span> 37 <span ng-show="plugin.Exception" class="glyphicon glyphicon glyphicon-remove" style="color: darkred" 38 ng-click="open(plugin.Name, plugin.Exception)"></span> 39 </td> 40 <td> 41 <a ng-href="" data-ng-click="reloadPlugin(plugin.Name)">Reload</a> 42 </td> 43 </tr> 44 </tbody> 43 45 </table> 44 46 </div> -
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/plugins/plugins/plugins.js
r12523 r12557 2 2 (function () { 3 3 var plugin = appPluginsPlugin; 4 plugin.dependencies = ['ngResource', 'ui.bootstrap' ];4 plugin.dependencies = ['ngResource', 'ui.bootstrap', 'tableSort']; 5 5 plugin.files = [ 6 6 'pluginsService.js',
Note: See TracChangeset
for help on using the changeset viewer.