blob: 4b5907b97652b2e9a15302f236dd028cd865f79e (
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
44
45
46
47
48
49
|
@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>
<form method="post" enctype="application/x-www-form-urlencoded"><input type="submit" name="csv" value="Download CSV"></form>
<table style="width=100%;">
<tr>
<td style="width:25%;"><b>Time</b></td>
<td style="width:15%;"><b>Key</b></td>
<td style="width:60%;"><b>Info</b></td>
</tr>
@foreach(Download obj in Model.Rows)
{
<tr>
<td>@obj.Time.ToString("o", System.Globalization.CultureInfo.InvariantCulture)</td>
<td>@obj.Key</td>
<td>
@foreach (string s in obj.Info)
{
@s
<br>
}
</td>
</tr>
}
</table>
|