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.

Index.cshtml 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. @model Teknik.Areas.Transparency.ViewModels.TransparencyViewModel
  2. @using Teknik.Helpers
  3. @using Teknik.Areas.Transparency.Models
  4. @Scripts.Render("~/bundles/transparency")
  5. <div class="container">
  6. @if (Model.Config.TransparencyConfig.Enabled)
  7. {
  8. <div class="row">
  9. <div class="col-sm-10 col-sm-offset-1">
  10. <h2 class="text-center"><b>Behind the Scenes</b></h2>
  11. <hr>
  12. <p>
  13. Here you can view all of Teknik's financial information, takedown requests and the actions we took, as well as some general statistics for the site's services.
  14. </p>
  15. <p>
  16. If you would like to request additional information about Teknik, please feel free to contact us through our <a href="@Url.SubRouteUrl("contact", "Contact.Index")" target="_blank">Contact Form</a> or by emailing us at <a href="mailto:@Model.Config.SupportEmail">@Model.Config.SupportEmail</a>.
  17. </p>
  18. <p>
  19. Want to make a donation? Visit our <a href="@Url.SubRouteUrl("about", "About.Index")" target="_blank">About Page</a> and choose a donation method at the bottom.
  20. </p>
  21. <br />
  22. <h2 class="text-center"><b>Statistics</b></h2>
  23. <hr>
  24. <div class="row">
  25. <div class="col-sm-6">
  26. <h3>Uploads</h3>
  27. <p>Number of Uploads: @Model.UploadCount</p>
  28. <p>Total Size: @Utility.GetBytesReadable(Model.UploadSize)</p>
  29. </div>
  30. <div class="col-sm-6">
  31. <h3>Pastes</h3>
  32. <p>Number of Pastes: @Model.PasteCount</p>
  33. </div>
  34. </div>
  35. <div class="row">
  36. <div class="col-sm-6">
  37. <h3>Users</h3>
  38. <p>Number of Users: @Model.UserCount</p>
  39. </div>
  40. <div class="col-sm-6">
  41. <h3>Shortened Urls</h3>
  42. <p>Number of Shortened Urls: @Model.ShortenedUrlCount</p>
  43. </div>
  44. </div>
  45. <br />
  46. <h2 class="text-center"><b>Transactions</b></h2>
  47. <hr>
  48. <h3 class="text-center">Total Amounts</h3>
  49. <div class="row">
  50. <div class="col-sm-3 text-center">
  51. <h4>Donations</h4>
  52. @foreach (var val in Model.TotalDonations)
  53. {
  54. <p>@Math.Round(val.Value, 2) @val.Key</p>
  55. }
  56. </div>
  57. <div class="col-sm-3 text-center">
  58. <h4>Bills</h4>
  59. @foreach (var val in Model.TotalBills)
  60. {
  61. <p>@Math.Round(val.Value, 2) @val.Key</p>
  62. }
  63. </div>
  64. <div class="col-sm-3 text-center">
  65. <h4>One-Time Payments</h4>
  66. @foreach (var val in Model.TotalOneTimes)
  67. {
  68. <p>@Math.Round(val.Value, 2) @val.Key</p>
  69. }
  70. </div>
  71. <div class="col-sm-3 text-center">
  72. <h4>Net Profit</h4>
  73. @foreach (var val in Model.TotalNet)
  74. {
  75. <p>@Math.Round(val.Value, 2) @val.Key</p>
  76. }
  77. </div>
  78. </div>
  79. @if (Model.Bills != null && Model.Bills.Any())
  80. {
  81. <h3>Bills</h3>
  82. <div class="row">
  83. <div class="col-sm-12">
  84. <button type="button" class="btn btn-default" data-toggle="collapse" data-target="#bills-section">View Bills</button>
  85. </div>
  86. </div>
  87. <br />
  88. <div id="bills-section" class="collapse in">
  89. <div class="row">
  90. <div class="col-sm-3">
  91. <h4><strong>Date</strong></h4>
  92. </div>
  93. <div class="col-sm-2">
  94. <h4><strong>Amount</strong></h4>
  95. </div>
  96. <div class="col-sm-7">
  97. <h4><strong>Description</strong></h4>
  98. </div>
  99. </div>
  100. @foreach (Bill bill in Model.Bills)
  101. {
  102. <div class="row">
  103. <div class="col-sm-3">
  104. @bill.DateSent.ToString("MMMM dd, yyyy")
  105. </div>
  106. <div class="col-sm-2">
  107. @bill.Amount <var>@bill.Currency</var>
  108. </div>
  109. <div class="col-sm-7">
  110. @bill.Reason
  111. </div>
  112. </div>
  113. }
  114. </div>
  115. }
  116. @if (Model.OneTimes != null && Model.OneTimes.Any())
  117. {
  118. <h3>One Time Payments</h3>
  119. <div class="row">
  120. <div class="col-sm-12">
  121. <button type="button" class="btn btn-default" data-toggle="collapse" data-target="#oneTime-section">View Payments</button>
  122. </div>
  123. </div>
  124. <br />
  125. <div id="oneTime-section" class="collapse in">
  126. <div class="row">
  127. <div class="col-sm-3">
  128. <h4><strong>Date</strong></h4>
  129. </div>
  130. <div class="col-sm-2">
  131. <h4><strong>Amount</strong></h4>
  132. </div>
  133. <div class="col-sm-7">
  134. <h4><strong>Reason for Payment</strong></h4>
  135. </div>
  136. </div>
  137. @foreach (OneTime oneTime in Model.OneTimes)
  138. {
  139. <div class="row">
  140. <div class="col-sm-3">
  141. @oneTime.DateSent.ToString("MMMM dd, yyyy")
  142. </div>
  143. <div class="col-sm-2">
  144. @oneTime.Amount <var>@oneTime.Currency</var>
  145. </div>
  146. <div class="col-sm-7">
  147. @oneTime.Reason
  148. </div>
  149. </div>
  150. }
  151. </div>
  152. }
  153. @if (Model.Donations != null && Model.Donations.Any())
  154. {
  155. <h3>Donations</h3>
  156. <div class="row">
  157. <div class="col-sm-12">
  158. <button type="button" class="btn btn-default" data-toggle="collapse" data-target="#donations-section">View Donations</button>
  159. </div>
  160. </div>
  161. <br />
  162. <div id="donations-section" class="collapse in">
  163. <div class="row">
  164. <div class="col-sm-3">
  165. <h4><strong>Date</strong></h4>
  166. </div>
  167. <div class="col-sm-2">
  168. <h4><strong>Amount</strong></h4>
  169. </div>
  170. <div class="col-sm-2">
  171. <h4><strong>Donor</strong></h4>
  172. </div>
  173. <div class="col-sm-5">
  174. <h4><strong>Reason for Donation</strong></h4>
  175. </div>
  176. </div>
  177. @foreach (Donation donation in Model.Donations)
  178. {
  179. <div class="row">
  180. <div class="col-sm-3">
  181. @donation.DateSent.ToString("MMMM dd, yyyy")
  182. </div>
  183. <div class="col-sm-2">
  184. @donation.Amount <var>@donation.Currency</var>
  185. </div>
  186. <div class="col-sm-2">
  187. @donation.Sender
  188. </div>
  189. <div class="col-sm-5">
  190. @donation.Reason
  191. </div>
  192. </div>
  193. }
  194. </div>
  195. }
  196. <br />
  197. <h2 class="text-center"><b>Takedowns</b></h2>
  198. <hr>
  199. @if (Model.Takedowns != null && Model.Takedowns.Any())
  200. {
  201. <h3>Takedowns</h3>
  202. <div class="row">
  203. <div class="col-sm-12">
  204. <button type="button" class="btn btn-default" data-toggle="collapse" data-target="#takedowns-section">View Takedowns</button>
  205. </div>
  206. </div>
  207. <br />
  208. <div id="takedowns-section" class="collapse in">
  209. <div class="row">
  210. <div class="col-sm-2">
  211. <h4><strong>Requester</strong></h4>
  212. </div>
  213. <div class="col-sm-2">
  214. <h4><strong>Contact</strong></h4>
  215. </div>
  216. <div class="col-sm-2">
  217. <h4><strong>Reason</strong></h4>
  218. </div>
  219. <div class="col-sm-2">
  220. <h4><strong>Action Taken</strong></h4>
  221. </div>
  222. <div class="col-sm-2">
  223. <h4><strong>Date Requested</strong></h4>
  224. </div>
  225. <div class="col-sm-2">
  226. <h4><strong>Date Of Action</strong></h4>
  227. </div>
  228. </div>
  229. @foreach (Takedown takedown in Model.Takedowns)
  230. {
  231. <div class="row">
  232. <div class="col-sm-2">
  233. @takedown.Requester
  234. </div>
  235. <div class="col-sm-2">
  236. @takedown.RequesterContact
  237. </div>
  238. <div class="col-sm-2">
  239. @takedown.Reason
  240. </div>
  241. <div class="col-sm-2">
  242. @takedown.ActionTaken
  243. </div>
  244. <div class="col-sm-2">
  245. @takedown.DateRequested.ToString("MMMM dd, yyyy")
  246. </div>
  247. <div class="col-sm-2">
  248. @takedown.DateActionTaken.ToString("MMMM dd, yyyy")
  249. </div>
  250. </div>
  251. }
  252. </div>
  253. }
  254. <br />
  255. </div>
  256. </div>
  257. <div class="row">
  258. <div class="col-sm-8 col-sm-offset-2">
  259. @if (!string.IsNullOrEmpty(Model.Canary))
  260. {
  261. <pre>@Model.Canary</pre>
  262. }
  263. </div>
  264. </div>
  265. }
  266. else
  267. {
  268. <div class="row">
  269. <div class="col-sm-8 col-sm-offset-2 text-center">
  270. <h3>Transparency Information has been disabled</h3>
  271. </div>
  272. </div>
  273. }
  274. </div>