-
Notifications
You must be signed in to change notification settings - Fork 32
/
Index.cshtml
54 lines (49 loc) · 1.41 KB
/
Index.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@model List<Job>
@{
ViewBag.Title = "Home Page";
}
<h1>Results</h1>
<p>
Please see the details of the jobs you have run below.
</p>
<table class="table table-striped">
<thead>
<tr>
<th>Date</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach (var job in Model)
{
<tr>
<th>@job.Timestamp.ToString("yyyy-MM-dd")</th>
<td>
@if (job.ProcessingCompleted != null)
{
<a href="/Results/Details?nsUrl=@ViewBag.NSUrl&jobId=@job.RowKey">
@if (job.Failed)
{
<i class="fa fa-times-circle" style="color: tomato"></i> @:Error
}
else
{
<i class="fa fa-check-circle" style="color: green"></i> @:Complete
}
</a>
}
else
{
<i class="fa fa-refresh" style="color: gray"></i> @:Running...
}
</td>
</tr>
}
</tbody>
</table>
@if (Model.Any(j => j.ProcessingCompleted == null))
{
<script type="text/javascript">
setTimeout(location.reload, 10000);
</script>
}