The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UploadResult.cshtml 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @model Teknik.Areas.Admin.ViewModels.UploadResultViewModel
  2. <div class="panel panel-default">
  3. <div class="panel-heading text-center">
  4. <a id="upload-url" href="@Url.SubRouteUrl("u", "Upload.Download", new { file = Model.Url })">@Url.SubRouteUrl("u", "Upload.Download", new { file = Model.Url })</a>
  5. </div>
  6. <div class="panel-body">
  7. <div class="col-sm-2 text-center">
  8. <label for="type">Username</label>
  9. <p id="type">
  10. @if (!string.IsNullOrEmpty(Model.Username))
  11. {
  12. @:<a href="@Url.SubRouteUrl("admin", "Admin.UserInfo", new { username = Model.Username })">@Model.Username</a>
  13. }
  14. </p>
  15. </div>
  16. <div class="col-sm-2 text-center">
  17. <label for="size">Size</label>
  18. <p id="size">@StringHelper.GetBytesReadable(Model.ContentLength)</p>
  19. </div>
  20. <div class="col-sm-2 text-center">
  21. <label for="type">Type</label>
  22. <p id="type">@Model.ContentType</p>
  23. </div>
  24. <div class="col-sm-2 text-center">
  25. <label for="dateUploaded">Date Uploaded</label>
  26. <p id="dateUploaded"><time datetime="@Model.DateUploaded.ToString("s")">@Model.DateUploaded.ToString("MMMM dd, yyyy")</time></p>
  27. </div>
  28. <div class="col-sm-2 text-center">
  29. <label for="downloads">Downloads</label>
  30. <p id="downloads">@Model.Downloads</p>
  31. </div>
  32. <div class="col-sm-2 text-center">
  33. @{
  34. string deleteUrl = (string.IsNullOrEmpty(Model.DeleteKey)) ? string.Empty : Url.SubRouteUrl("u", "Upload.DeleteByKey", new { file = Model.Url, key = Model.DeleteKey });
  35. }
  36. <p id="delete-upload"><button role="button" class="btn btn-danger delete-upload-button" id="@deleteUrl" data-upload-id="@Model.Url">Delete</button></p>
  37. </div>
  38. </div>
  39. </div>