1 | @using HeuristicLab.Services.Access.DataTransfer
|
---|
2 | @using HeuristicLab.Services.Hive
|
---|
3 | <header class="view-header">
|
---|
4 | <ul class="nav nav-list nav-list-topbar pull-left">
|
---|
5 | <li>
|
---|
6 | <a ng-href="#/statistics/jobs">Jobs</a>
|
---|
7 | </li>
|
---|
8 | @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
|
---|
9 | <li>
|
---|
10 | <a ng-href="#/statistics/users">Users</a>
|
---|
11 | </li>
|
---|
12 | }
|
---|
13 | <li>
|
---|
14 | <a ng-href="#/statistics/clients">Clients</a>
|
---|
15 | </li>
|
---|
16 | <li class="active">
|
---|
17 | <a ng-href="#/statistics/groups">Groups</a>
|
---|
18 | </li>
|
---|
19 | @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
|
---|
20 | <li>
|
---|
21 | <a ng-href="#/statistics/exceptions">Exceptions</a>
|
---|
22 | </li>
|
---|
23 | }
|
---|
24 | </ul>
|
---|
25 | </header>
|
---|
26 |
|
---|
27 | <div class="default-view-container">
|
---|
28 | <div class="row">
|
---|
29 | <div class="col-lg-12">
|
---|
30 | <div class="panel panel-default">
|
---|
31 | <div class="panel-heading">
|
---|
32 | <h3 class="panel-title">Groups</h3>
|
---|
33 | </div>
|
---|
34 | <div class="panel-body">
|
---|
35 | <table class="table table-hover table-condensed">
|
---|
36 | <thead>
|
---|
37 | <tr>
|
---|
38 | <th>#</th>
|
---|
39 | <th>Group Name</th>
|
---|
40 | <th>Cores</th>
|
---|
41 | <th>Cpu Utilization</th>
|
---|
42 | <th>Memory</th>
|
---|
43 | <th>Clients</th>
|
---|
44 | <th></th>
|
---|
45 | </tr>
|
---|
46 | </thead>
|
---|
47 | <tr ng-repeat="group in groupPage.Groups">
|
---|
48 | <td>{{($index + 1)+((curGroupsPage-1)*(groupsPageSize))}}</td>
|
---|
49 | <td>{{group.Name}}</td>
|
---|
50 | <td>{{group.UsedCores}} / {{group.TotalCores}}</td>
|
---|
51 | <td>{{group.CpuUtilization | number: 2}} %</td>
|
---|
52 | <td>{{group.UsedMemory | kbToGB}} / {{group.TotalMemory | kbToGB}} GB</td>
|
---|
53 | <td>{{group.OnlineClients}} / {{group.TotalClients}}</td>
|
---|
54 | <td>
|
---|
55 | <a ng-href="#/statistics/groups/{{group.Id}}">Details</a>
|
---|
56 | </td>
|
---|
57 | </tr>
|
---|
58 | <tr ng-hide="groupPage.Groups.length">
|
---|
59 | <td colspan="7" class="text-center">No groups found!</td>
|
---|
60 | </tr>
|
---|
61 | </table>
|
---|
62 | <div class="row text-center" ng-show="groupPage.TotalGroups > groupPage.Groups.length">
|
---|
63 | <pagination max-size="10" total-items="groupPage.TotalGroups" ng-model="curGroupsPage" ng-change="changeGroupsPage()" items-per-page="groupsPageSize"
|
---|
64 | boundary-links="true" rotate="false" num-pages="numPages"></pagination>
|
---|
65 | </div>
|
---|
66 | </div>
|
---|
67 | </div>
|
---|
68 | </div>
|
---|
69 | </div>
|
---|
70 | </div> |
---|