blob: ed7dbfa4aadbb94dce908ec2c0cf97ff4ceaee59 (
plain)
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
|
@page
@model download_admin.Pages.ReportModel
@if (Model.HasError)
{
<p style="color:red"><b>@Model.ErrorText</b></p>
}
<h1>Count for each key</h1>
<table style="width:100%">
<tr>
<td style="width:50%;"><b>Key</b></td>
<td style="width:50%;"><b>Downloads</b></td>
</tr>
@foreach (string t in Model.Keys)
{
<tr>
<td>@t</td>
<td>@Model.GetCount(t)</td>
</tr>
}
</table>
<h1>Download Details</h1>
<table style width="100%">
<tr>
<td style="width:25%;"><b>Time</b></td>
<td style="width:25%;"><b>Key</b></td>
<td style="width:25%;"><b>IP Address</b></td>
<td style="width:25%;"><b>User Agent</b></td>
</tr>
@foreach(Download obj in Model.Rows)
{
<tr>
<td>@obj.Time</td>
<td>@obj.Key</td>
<td>@obj.IpAddress</td>
<td>@obj.UserAgent</td>
</tr>
}
</table>
|