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 class="active">
|
---|
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 | </ul>
|
---|
17 | </header>
|
---|
18 |
|
---|
19 | <div class="default-view-container">
|
---|
20 | <div class="row">
|
---|
21 | <div class="col-lg-12">
|
---|
22 | <div class="panel panel-default">
|
---|
23 | <div class="panel-heading">
|
---|
24 | <h3 class="panel-title">Current Jobs</h3>
|
---|
25 | </div>
|
---|
26 | <div class="panel-body">
|
---|
27 | <table class="table table-hover table-condensed">
|
---|
28 | <thead>
|
---|
29 | <tr>
|
---|
30 | <th>#</th>
|
---|
31 | <th>Job Name</th>
|
---|
32 | <th>Date Created</th>
|
---|
33 | <th>Progress</th>
|
---|
34 | <th></th>
|
---|
35 | </tr>
|
---|
36 | </thead>
|
---|
37 | <tr ng-repeat="job in jobs">
|
---|
38 | <td>{{$index + 1}}</td>
|
---|
39 | <td>{{job.Name}}</td>
|
---|
40 | <td>{{job.DateCreated}}</td>
|
---|
41 | <td>
|
---|
42 | <progressbar class="progress active" max="job.TotalTasks" value="job.CompletedTasks" type="success"><i style="color:black; white-space:nowrap;">{{job.CompletedTasks}} / {{job.TotalTasks}}</i></progressbar>
|
---|
43 | </td>
|
---|
44 | <td>
|
---|
45 | <a ng-href="#/statistics/jobs/{{job.Id}}">Details</a>
|
---|
46 | </td>
|
---|
47 | </tr>
|
---|
48 | <tr ng-hide="jobs.length">
|
---|
49 | <td colspan="5" class="text-center">No active jobs found!</td>
|
---|
50 | </tr>
|
---|
51 | </table>
|
---|
52 | </div>
|
---|
53 | </div>
|
---|
54 | </div>
|
---|
55 | </div>
|
---|
56 |
|
---|
57 | <div class="row">
|
---|
58 | <div class="col-lg-12">
|
---|
59 | <div class="panel panel-default">
|
---|
60 | <div class="panel-heading">
|
---|
61 | <h3 class="panel-title">Completed Jobs</h3>
|
---|
62 | </div>
|
---|
63 | <div class="panel-body">
|
---|
64 | <table class="table table-hover table-condensed">
|
---|
65 | <thead>
|
---|
66 | <tr>
|
---|
67 | <th>#</th>
|
---|
68 | <th>Job Name</th>
|
---|
69 | <th>Date Created</th>
|
---|
70 | <th>Date Completed</th>
|
---|
71 | <th>Tasks</th>
|
---|
72 | <th></th>
|
---|
73 | </tr>
|
---|
74 | </thead>
|
---|
75 | <tr ng-repeat="job in completedJobPage.Jobs">
|
---|
76 | <td>{{($index + 1)+((completedJobCurPage-1)*(completedJobPageSize))}}</td>
|
---|
77 | <td>{{job.Name}}</td>
|
---|
78 | <td>{{job.DateCreated}}</td>
|
---|
79 | <td>{{job.DateCompleted}}</td>
|
---|
80 | <td>{{job.TotalTasks}}</td>
|
---|
81 | <td><a ng-href="#/statistics/jobs/{{job.Id}}">Details</a></td>
|
---|
82 | </tr>
|
---|
83 | <tr ng-hide="completedJobPage.Jobs.length">
|
---|
84 | <td colspan="6" class="text-center">No completed jobs found!</td>
|
---|
85 | </tr>
|
---|
86 | </table>
|
---|
87 | <div class="row text-center" ng-show="completedJobPage.TotalJobs > completedJobPage.Jobs.length">
|
---|
88 | <pagination max-size="10" total-items="completedJobPage.TotalJobs"
|
---|
89 | ng-model="completedJobCurPage" items-per-page="completedJobPageSize"
|
---|
90 | ng-change="changeCompletedJobPage()"
|
---|
91 | boundary-links="true" rotate="false" num-pages="numPages"></pagination>
|
---|
92 | </div>
|
---|
93 | </div>
|
---|
94 | </div>
|
---|
95 | </div>
|
---|
96 | </div>
|
---|
97 | </div> |
---|