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 11KB

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