summaryrefslogtreecommitdiff
path: root/Pages/Report.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'Pages/Report.cshtml')
-rw-r--r--Pages/Report.cshtml43
1 files changed, 43 insertions, 0 deletions
diff --git a/Pages/Report.cshtml b/Pages/Report.cshtml
new file mode 100644
index 0000000..b928ef5
--- /dev/null
+++ b/Pages/Report.cshtml
@@ -0,0 +1,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>
+ <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>
+ <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> \ No newline at end of file