Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2388: Changed all files to connect to localhost / sqlexpress

HeuristicLab.Services.Hive-3.3:

  • Added Converter.cs and NewHiveService.cs, both will be integrated into existing HiveService.cs and Convert.cs when all methods are successfully implemented

HeuristicLab.Services.Hive.Web.Hive-3.3:

  • Added publish profiles

HeuristicLab.Services.WebApp.Statistics-3.3:

  • Added functionality to download TaskData as .hl file
File size: 5.7 KB
RevLine 
[12477]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>
[12551]6            <a ng-href="#/statistics/jobs">Jobs</a>
[12477]7        </li>
[12584]8        @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
[12551]9            <li>
10                <a ng-href="#/statistics/users">Users</a>
11            </li>
12        }
13        <li class="active">
14            <a ng-href="#/statistics/clients">Clients</a>
15        </li>
16        <li>
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        }
[12477]24    </ul>
25</header>
26
27<div class="default-view-container">
[12516]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">Current Clients</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>Client Name</th>
[12525]40                            <th>Group Name</th>
[12516]41                            <th>Cores</th>
42                            <th>Cpu Utilization</th>
[12551]43                            <th>Memory</th>
[12516]44                            <th>State</th>
45                            <th></th>
46                        </tr>
47                        </thead>
48                        <tr ng-repeat="client in clientPage.Clients">
49                            <td>{{($index + 1)+((curClientsPage-1)*(clientsPageSize))}}</td>
50                            <td>{{client.Name}}</td>
[12525]51                            <td>
52                                <a ng-show="client.GroupName" ng-href="#/statistics/groups/{{client.GroupId}}">{{client.GroupName}}</a>
53                                <span ng-hide="client.GroupName">No Group</span>
54                            </td>
[12516]55                            <td>{{client.UsedCores}} / {{client.TotalCores}}</td>
56                            <td>{{client.CpuUtilization | number: 2}} %</td>
[12551]57                            <td>{{client.UsedMemory | kbToGB}} / {{client.TotalMemory | kbToGB}} GB</td>
[12516]58                            <td>{{client.State}}</td>
59                            <td>
60                                <a ng-href="#/statistics/clients/{{client.Id}}">Details</a>
61                            </td>
62                        </tr>
63                        <tr ng-hide="clientPage.Clients.length">
[12551]64                            <td colspan="7" class="text-center">No clients found!</td>
[12516]65                        </tr>
66                    </table>
67                    <div class="row text-center" ng-show="clientPage.TotalClients > clientPage.Clients.length">
68                        <pagination max-size="10" total-items="clientPage.TotalClients" ng-model="curClientsPage" ng-change="changeClientsPage()" items-per-page="clientsPageSize"
69                                    boundary-links="true" rotate="false" num-pages="numPages"></pagination>
70                    </div>
71                </div>
72            </div>
73        </div>
74    </div>
[12477]75
[12516]76    <div class="row">
77        <div class="col-lg-12">
78            <div class="panel panel-default">
79                <div class="panel-heading">
80                    <h3 class="panel-title">Expired Clients</h3>
81                </div>
82                <div class="panel-body">
83                    <table class="table table-hover table-condensed">
84                        <thead>
85                            <tr>
86                                <th>#</th>
87                                <th>Client Name</th>
88                                <th>Cores</th>
89                                <th>Cpu Utilization</th>
[12551]90                                <th>Memory</th>
[12516]91                                <th>State</th>
92                                <th></th>
93                            </tr>
94                        </thead>
95                        <tr ng-repeat="client in expiredClientPage.Clients">
96                            <td>{{($index + 1)+((curExpiredClientsPage-1)*(expiredClientsPageSize))}}</td>
97                            <td>{{client.Name}}</td>
98                            <td>{{client.UsedCores}} / {{client.TotalCores}}</td>
99                            <td>{{client.CpuUtilization | number: 2}} %</td>
[12551]100                            <td>{{client.UsedMemory | kbToGB}} / {{client.TotalMemory | kbToGB}} GB</td>
[12516]101                            <td>{{client.State}}</td>
102                            <td>
103                                <a ng-href="#/statistics/clients/{{client.Id}}">Details</a>
104                            </td>
105                        </tr>
106                        <tr ng-hide="expiredClientPage.Clients.length">
[12551]107                            <td colspan="7" class="text-center">No expired clients found!</td>
[12516]108                        </tr>
109                    </table>
110                    <div class="row text-center" ng-show="expiredClientPage.TotalClients > expiredClientPage.Clients.length">
111                        <pagination max-size="10" total-items="expiredClientPage.TotalClients" ng-model="curExpiredClientsPage" ng-change="changeExpiredClientsPage()" items-per-page="expiredClientsPageSize"
112                                    boundary-links="true" rotate="false" num-pages="numPages"></pagination>
113                    </div>
114                </div>
115            </div>
116        </div>
117    </div>
118</div>
Note: See TracBrowser for help on using the repository browser.