summaryrefslogtreecommitdiff
path: root/Pages/Report.cshtml
blob: 624d61f9c46b8406b4f485194ac838509ce2996c (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
@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:20%;"><b>Time</b></td>
        <td style="width:15%;"><b>Key</b></td>
        <td style="width:65%;"><b>Info</b></td>
    </tr>
    @foreach(Download obj in Model.Rows)
    {
        <tr>
            <td>@obj.Time</td>
            <td>@obj.Key</td>
            <td>
                @foreach (string s in obj.Info)
                {
                    @s
                    <br>
                }
            </td>
        </tr>
    }
</table>