Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/groups.cshtml @ 12551

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

#2388:

HeuristicLab.Services.Hive.DataAccess-3.3:

  • updated database schema
  • updated sql scripts
  • updated HiveStatisticsGenerator

HeuristicLab.Services.WebApp-3.3:

  • merged from trunk

HeuristicLab.Services.WebApp.Status-3.3:

  • updated data api controller

HeuristicLab.Services.WebApp.Statistics-3.3:

  • added exception page
  • improved jobs, clients, users and groups page
File size: 3.1 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            <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>
Note: See TracBrowser for help on using the repository browser.