18 changed files with 9 additions and 297 deletions
@ -1,20 +0,0 @@
@@ -1,20 +0,0 @@
|
||||
@model Teknik.Areas.Help.ViewModels.HelpViewModel |
||||
|
||||
<div class="container"> |
||||
<ol class="breadcrumb"> |
||||
<li><a href="@Url.SubRouteUrl("help", "Help.Index")">Help Index</a></li> |
||||
<li class="active"><a href="#">IRC Network</a></li> |
||||
</ol> |
||||
<div class="row"> |
||||
<h2><b>IRC</b></h2> |
||||
<hr> |
||||
<h3>IRC Server Info</h3> |
||||
<p> |
||||
You can connect to the Teknik IRC using any RFC compliant client by connecting to <b>irc.@Config.Host</b> on port <b>6667</b>. |
||||
</p> |
||||
<h3>Channel Information</h3> |
||||
<p> |
||||
The main channel for Teknik support is located at #teknik. |
||||
</p> |
||||
</div> |
||||
</div> |
@ -1,16 +0,0 @@
@@ -1,16 +0,0 @@
|
||||
@model Teknik.Areas.Help.ViewModels.HelpViewModel |
||||
|
||||
<div class="container"> |
||||
<ol class="breadcrumb"> |
||||
<li><a href="@Url.SubRouteUrl("help", "Help.Index")">Help Index</a></li> |
||||
<li class="active"><a href="#">Mumble Chat Server</a></li> |
||||
</ol> |
||||
<div class="row"> |
||||
<h2><b>Mumble</b></h2> |
||||
<hr> |
||||
<h3>Mumble Server Info</h3> |
||||
<p> |
||||
You can connect to the Mumble server by connecting to <b>mumble.@Config.Host</b> on port <b>64738</b>. |
||||
</p> |
||||
</div> |
||||
</div> |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Teknik.Areas.Stats.Models |
||||
{ |
||||
public class Bill : Transaction |
||||
{ |
||||
public string Recipient { get; set; } |
||||
} |
||||
} |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Teknik.Areas.Stats.Models |
||||
{ |
||||
public class Donation : Transaction |
||||
{ |
||||
public string Sender { get; set; } |
||||
} |
||||
} |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Teknik.Areas.Stats.Models |
||||
{ |
||||
public class OneTime : Transaction |
||||
{ |
||||
public string Recipient { get; set; } |
||||
} |
||||
} |
@ -1,22 +0,0 @@
@@ -1,22 +0,0 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
using Teknik.Utilities; |
||||
|
||||
namespace Teknik.Areas.Stats.Models |
||||
{ |
||||
public class Transaction |
||||
{ |
||||
public int TransactionId { get; set; } |
||||
|
||||
public decimal Amount { get; set; } |
||||
|
||||
public CurrencyType Currency { get; set; } |
||||
|
||||
public string Reason { get; set; } |
||||
|
||||
public DateTime DateSent { get; set; } |
||||
} |
||||
} |
@ -1,35 +0,0 @@
@@ -1,35 +0,0 @@
|
||||
@model List<Teknik.Areas.Stats.ViewModels.BillViewModel> |
||||
|
||||
@using Teknik.Areas.Stats.ViewModels |
||||
|
||||
@if (Model != null && Model.Any()) |
||||
{ |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<h3>Bills</h3> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<button type="button" class="btn btn-default" data-toggle="collapse" data-target="#bills-section">View Bills</button> |
||||
</div> |
||||
</div> |
||||
<br /> |
||||
<div id="bills-section" class="collapse in"> |
||||
<table class="table table-condensed table-bordered table-hover"> |
||||
<tr> |
||||
<th><strong>Date</strong></th> |
||||
<th><strong>Amount</strong></th> |
||||
<th><strong>Description</strong></th> |
||||
</tr> |
||||
@foreach (BillViewModel bill in Model) |
||||
{ |
||||
<tr> |
||||
<td>@bill.DateSent.ToString("MMMM dd, yyyy")</td> |
||||
<td>@bill.Amount <var>@bill.Currency.ToString()</var></td> |
||||
<td>@bill.Reason</td> |
||||
</tr> |
||||
} |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
} |
@ -1,37 +0,0 @@
@@ -1,37 +0,0 @@
|
||||
@model List<Teknik.Areas.Stats.ViewModels.DonationViewModel> |
||||
|
||||
@using Teknik.Areas.Stats.ViewModels |
||||
|
||||
@if (Model != null && Model.Any()) |
||||
{ |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<h3>Donations</h3> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<button type="button" class="btn btn-default" data-toggle="collapse" data-target="#donations-section">View Donations</button> |
||||
</div> |
||||
</div> |
||||
<br /> |
||||
<div id="donations-section" class="collapse in"> |
||||
<table class="table table-condensed table-bordered table-hover"> |
||||
<tr> |
||||
<th><strong>Date</strong></th> |
||||
<th><strong>Amount</strong></th> |
||||
<th><strong>Donor</strong></th> |
||||
<th><strong>Reason for Donation</strong></th> |
||||
</tr> |
||||
@foreach (DonationViewModel donation in Model) |
||||
{ |
||||
<tr> |
||||
<td>@donation.DateSent.ToString("MMMM dd, yyyy")</td> |
||||
<td>@donation.Amount <var>@donation.Currency.ToString()</var></td> |
||||
<td>@donation.Sender</td> |
||||
<td>@donation.Reason</td> |
||||
</tr> |
||||
} |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
} |
@ -1,35 +0,0 @@
@@ -1,35 +0,0 @@
|
||||
@model List<Teknik.Areas.Stats.ViewModels.OneTimeViewModel> |
||||
|
||||
@using Teknik.Areas.Stats.ViewModels |
||||
|
||||
@if (Model != null && Model.Any()) |
||||
{ |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<h3>One Time Payments</h3> |
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<button type="button" class="btn btn-default" data-toggle="collapse" data-target="#oneTime-section">View Payments</button> |
||||
</div> |
||||
</div> |
||||
<br /> |
||||
<div id="oneTime-section" class="collapse in"> |
||||
<table class="table table-condensed table-bordered table-hover"> |
||||
<tr> |
||||
<th><strong>Date</strong></th> |
||||
<th><strong>Amount</strong></th> |
||||
<th><strong>Reason for Payment</strong></th> |
||||
</tr> |
||||
@foreach (OneTimeViewModel oneTime in Model) |
||||
{ |
||||
<tr> |
||||
<td>@oneTime.DateSent.ToString("MMMM dd, yyyy")</td> |
||||
<td>@oneTime.Amount <var>@oneTime.Currency.ToString()</var></td> |
||||
<td>@oneTime.Reason</td> |
||||
</tr> |
||||
} |
||||
</table> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
} |
@ -1,60 +0,0 @@
@@ -1,60 +0,0 @@
|
||||
@model Teknik.Areas.Stats.ViewModels.TransactionsViewModel |
||||
|
||||
@using Teknik.Areas.Stats.ViewModels |
||||
|
||||
@{ |
||||
decimal totalBills = Model.CurrentMonthBills; |
||||
decimal totalIncome = Model.CurrentMonthIncome; |
||||
int incomePercentage = 0; |
||||
if (totalIncome != 0 && totalBills != 0) |
||||
{ |
||||
incomePercentage = (int)Math.Min(Math.Floor((totalIncome / totalBills) * 100), 100); |
||||
} |
||||
|
||||
string processStyle = "progress-bar progress-bar-success"; |
||||
if (incomePercentage < 100) |
||||
{ |
||||
processStyle += " progress-bar-striped"; |
||||
} |
||||
} |
||||
|
||||
<div class="row"> |
||||
<div class="col-sm-12"> |
||||
<h2 class="text-center"><b>Transactions</b></h2> |
||||
<hr> |
||||
<div class="row"> |
||||
<div class="col-sm-10 col-sm-offset-1"> |
||||
<h3 class="text-center">Monthly Donation Target</h3> |
||||
<div class="progress"> |
||||
<div class="@processStyle" role="progressbar" style="width: @incomePercentage%"></div> |
||||
</div> |
||||
<div class="row"> |
||||
<div class="col-sm-12 text-center">$@totalIncome Donated / $@totalBills Bills</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<h3 class="text-center">Transaction Totals</h3> |
||||
<div class="row"> |
||||
<div class="col-sm-3 text-center"> |
||||
<h4>Donations</h4> |
||||
<p>$@Math.Round(Model.TotalDonations, 2)</p> |
||||
</div> |
||||
<div class="col-sm-3 text-center"> |
||||
<h4>Bills</h4> |
||||
<p>$@Math.Round(Model.TotalBills, 2)</p> |
||||
</div> |
||||
<div class="col-sm-3 text-center"> |
||||
<h4>One-Time Payments</h4> |
||||
<p>$@Math.Round(Model.TotalOneTimes, 2)</p> |
||||
</div> |
||||
<div class="col-sm-3 text-center"> |
||||
<h4>Net Profit</h4> |
||||
<p>$@Math.Round(Model.TotalNet, 2)</p> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
@await Html.PartialAsync("~/Areas/Stats/Views/Stats/Bills.cshtml", Model.Bills) |
||||
@await Html.PartialAsync("~/Areas/Stats/Views/Stats/OneTimes.cshtml", Model.OneTimes) |
||||
@await Html.PartialAsync("~/Areas/Stats/Views/Stats/Donations.cshtml", Model.Donations) |
Loading…
Reference in new issue