Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/groups.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: 2.7 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    </ul>
20</header>
21
22<div class="default-view-container">
23    <div class="row">
24        <div class="col-lg-12">
25            <div class="panel panel-default">
26                <div class="panel-heading">
27                    <h3 class="panel-title">Groups</h3>
28                </div>
29                <div class="panel-body">
30                    <table class="table table-hover table-condensed">
31                        <thead>
32                        <tr>
33                            <th>#</th>
34                            <th>Group Name</th>
35                            <th>Cores</th>
36                            <th>Cpu Utilization</th>
37                            <th>Clients</th>
38                            <th></th>
39                        </tr>
40                        </thead>
41                        <tr ng-repeat="group in groupPage.Groups">
42                            <td>{{($index + 1)+((curGroupsPage-1)*(groupsPageSize))}}</td>
43                            <td>{{group.Name}}</td>
44                            <td>{{group.UsedCores}} / {{group.TotalCores}}</td>
45                            <td>{{group.CpuUtilization | number: 2}} %</td>
46                            <td>{{group.Clients}}</td>
47                            <td>
48                                <a ng-href="#/statistics/groups/{{group.Id}}">Details</a>
49                            </td>
50                        </tr>
51                        <tr ng-hide="groupPage.Groups.length">
52                            <td colspan="6" class="text-center">No groups found!</td>
53                        </tr>
54                    </table>
55                    <div class="row text-center" ng-show="groupPage.TotalGroups > groupPage.Groups.length">
56                        <pagination max-size="10" total-items="groupPage.TotalGroups" ng-model="curGroupsPage" ng-change="changeGroupsPage()" items-per-page="groupsPageSize"
57                                    boundary-links="true" rotate="false" num-pages="numPages"></pagination>
58                    </div>
59                </div>
60            </div>
61        </div>
62    </div>
63</div>
Note: See TracBrowser for help on using the repository browser.