summaryrefslogtreecommitdiff
path: root/Pages/Report.cshtml
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-03-22 12:28:07 +0000
committerIan C <ianc@noddybox.co.uk>2024-03-22 12:28:07 +0000
commit3f05ee34d209fcb994cba50955cd2e301315d9bd (patch)
tree5cd375c2e8ecc444786286af4d1afcbcaf95227e /Pages/Report.cshtml
parentd71f080ad276653399c92810c9122bf537e551fe (diff)
Initial working version.
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