Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/clients/clients.cshtml @ 12525

Last change on this file since 12525 was 12525, checked in by dglaser, 9 years ago

#2388:

HeuristicLab.Services.WebApp.Statistics-3.3:

  • added groups page
  • improved jobs, clients and users pages

HeuristicLab.Services.WebApp-3.3:

  • merged from trunk
File size: 5.2 KB
Line 
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    {
10        <li>
11            <a ng-href="#/statistics/users">Users</a>
12        </li>
13    }
14    <li class="active">
15        <a ng-href="#/statistics/clients">Clients</a>
16    </li>
17    <li>
18        <a ng-href="#/statistics/groups">Groups</a>
19    </li>
20    </ul>
21</header>
22
23<div class="default-view-container">
24    <div class="row">
25        <div class="col-lg-12">
26            <div class="panel panel-default">
27                <div class="panel-heading">
28                    <h3 class="panel-title">Current Clients</h3>
29                </div>
30                <div class="panel-body">
31                    <table class="table table-hover table-condensed">
32                        <thead>
33                        <tr>
34                            <th>#</th>
35                            <th>Client Name</th>
36                            <th>Group Name</th>
37                            <th>Cores</th>
38                            <th>Cpu Utilization</th>
39                            <th>State</th>
40                            <th></th>
41                        </tr>
42                        </thead>
43                        <tr ng-repeat="client in clientPage.Clients">
44                            <td>{{($index + 1)+((curClientsPage-1)*(clientsPageSize))}}</td>
45                            <td>{{client.Name}}</td>
46                            <td>
47                                <a ng-show="client.GroupName" ng-href="#/statistics/groups/{{client.GroupId}}">{{client.GroupName}}</a>
48                                <span ng-hide="client.GroupName">No Group</span>
49                            </td>
50                            <td>{{client.UsedCores}} / {{client.TotalCores}}</td>
51                            <td>{{client.CpuUtilization | number: 2}} %</td>
52                            <td>{{client.State}}</td>
53                            <td>
54                                <a ng-href="#/statistics/clients/{{client.Id}}">Details</a>
55                            </td>
56                        </tr>
57                        <tr ng-hide="clientPage.Clients.length">
58                            <td colspan="6" class="text-center">No clients found!</td>
59                        </tr>
60                    </table>
61                    <div class="row text-center" ng-show="clientPage.TotalClients > clientPage.Clients.length">
62                        <pagination max-size="10" total-items="clientPage.TotalClients" ng-model="curClientsPage" ng-change="changeClientsPage()" items-per-page="clientsPageSize"
63                                    boundary-links="true" rotate="false" num-pages="numPages"></pagination>
64                    </div>
65                </div>
66            </div>
67        </div>
68    </div>
69
70    <div class="row">
71        <div class="col-lg-12">
72            <div class="panel panel-default">
73                <div class="panel-heading">
74                    <h3 class="panel-title">Expired Clients</h3>
75                </div>
76                <div class="panel-body">
77                    <table class="table table-hover table-condensed">
78                        <thead>
79                            <tr>
80                                <th>#</th>
81                                <th>Client Name</th>
82                                <th>Cores</th>
83                                <th>Cpu Utilization</th>
84                                <th>State</th>
85                                <th></th>
86                            </tr>
87                        </thead>
88                        <tr ng-repeat="client in expiredClientPage.Clients">
89                            <td>{{($index + 1)+((curExpiredClientsPage-1)*(expiredClientsPageSize))}}</td>
90                            <td>{{client.Name}}</td>
91                            <td>{{client.UsedCores}} / {{client.TotalCores}}</td>
92                            <td>{{client.CpuUtilization | number: 2}} %</td>
93                            <td>{{client.State}}</td>
94                            <td>
95                                <a ng-href="#/statistics/clients/{{client.Id}}">Details</a>
96                            </td>
97                        </tr>
98                        <tr ng-hide="expiredClientPage.Clients.length">
99                            <td colspan="6" class="text-center">No expired clients found!</td>
100                        </tr>
101                    </table>
102                    <div class="row text-center" ng-show="expiredClientPage.TotalClients > expiredClientPage.Clients.length">
103                        <pagination max-size="10" total-items="expiredClientPage.TotalClients" ng-model="curExpiredClientsPage" ng-change="changeExpiredClientsPage()" items-per-page="expiredClientsPageSize"
104                                    boundary-links="true" rotate="false" num-pages="numPages"></pagination>
105                    </div>
106                </div>
107            </div>
108        </div>
109    </div>
110</div>
Note: See TracBrowser for help on using the repository browser.