Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2388:

HeuristicLab.Services.Hive.DataAccess-3.3:

  • updated daos
  • changed statistics database schema
  • updated HiveStatisticsGenerator

HeuristicLab.Services.WebApp.Statistics-3.3:

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