commit
4b7feb9651
|
@ -8,6 +8,15 @@
|
|||
<link href="@Html.Raw(Model.PTMagicConfiguration.GeneralSettings.Monitor.RootUrl)assets/plugins/tablesaw/css/tablesaw.css" rel="stylesheet" type="text/css" />
|
||||
<link href="@Html.Raw(Model.PTMagicConfiguration.GeneralSettings.Monitor.RootUrl)assets/plugins/nvd3/nv.d3.min.css" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card-box">
|
||||
<h4 class="m-t-0 header-title text-center">Current @Model.Summary.MainMarket Price:<text class="text-autocolor"> @Html.Raw(Model.MainFiatCurrencySymbol + Model.Summary.MainMarketPrice.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))) </text> <small> <i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="This is the value of your market currency."></i></small></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card-box">
|
||||
|
|
|
@ -12,6 +12,21 @@
|
|||
<link href="@Html.Raw(Model.PTMagicConfiguration.GeneralSettings.Monitor.RootUrl)assets/plugins/datatables/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card-box">
|
||||
@{
|
||||
double currentBalance = Model.PTData.GetCurrentBalance();
|
||||
string currentBalanceString = currentBalance.ToString("#,#0.00000000", new System.Globalization.CultureInfo("en-US"));
|
||||
if (currentBalance > 100) {
|
||||
currentBalanceString = Math.Round(currentBalance, 2).ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"));
|
||||
}
|
||||
}
|
||||
<h4 class="m-t-0 header-title text-center">Total Account Value: <text class="text-autocolor"> @currentBalanceString @Model.Summary.MainMarket </text> <small> <i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="This value is estimated based on your sales history and any entries on the Transactions page"></i></small></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (Model.PTData.SellLog.Count == 0) {
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
@ -26,7 +41,9 @@
|
|||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card-box">
|
||||
|
||||
<h4 class="m-t-0 header-title">Sales Analysis</h4>
|
||||
|
||||
@{
|
||||
double totalProfit = Model.PTData.SellLog.Sum(s => s.Profit);
|
||||
double totalProfitFiat = Math.Round(totalProfit * Model.Summary.MainMarketPrice, 2);
|
||||
|
|
|
@ -40,17 +40,9 @@
|
|||
</div>
|
||||
<!-- End Logo container-->
|
||||
|
||||
<div class="menu-extras topbar-custom">
|
||||
<ul class="list-inline float-left mb-0">
|
||||
<br>
|
||||
<span class="card-box card-box-mini card-box-ptmagic-outlined" data-toggle="tooltip" data-placement="bottom" title="Active global setting">
|
||||
<b>GS:</b> @Core.Helper.SystemHelper.SplitCamelCase(Model.Summary.CurrentGlobalSetting.SettingName)
|
||||
</span>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="menu-extras topbar-custom">
|
||||
<ul class="list-inline float-right mb-0">
|
||||
<li id="ticker-widgets" class="list-inline-item ticker-widgets"></li>
|
||||
<li class="menu-item list-inline-item">
|
||||
<!-- Mobile menu toggle-->
|
||||
<a class="navbar-toggle nav-link">
|
||||
|
@ -62,7 +54,7 @@
|
|||
</a>
|
||||
<!-- End mobile menu toggle-->
|
||||
</li>
|
||||
<li id="ticker-widgets" class="list-inline-item ticker-widgets"></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!-- end menu-extras -->
|
||||
|
|
|
@ -22,21 +22,15 @@
|
|||
string iconColor = "text-success";
|
||||
string ptMagicHealthIcon = "fa-heartbeat";
|
||||
string ptMagicHealthTooltip = "PT Magic is alive and healthy!";
|
||||
if (elapsedSecondsSinceRuntime > (intervalSeconds + intervalSeconds * 0.2)) {
|
||||
if (elapsedSecondsSinceRuntime > (intervalSeconds + intervalSeconds * 0.5)) {
|
||||
ptMagicHealthIcon = "fa-exclamation-triangle";
|
||||
ptMagicHealthTooltip = "PT Magic seems to have problems, check the logs!";
|
||||
iconColor = "text-danger";
|
||||
}
|
||||
}
|
||||
|
||||
@if (!Model.Summary.MainMarket.Equals("USDT", StringComparison.InvariantCultureIgnoreCase)) {
|
||||
<div class="card-box card-box-mini card-box-warning-outlined" data-toggle="tooltip" data-placement="bottom" title="Value of a single @Model.Summary.MainMarket">
|
||||
<b>@Model.Summary.MainMarket: </b>@Html.Raw(Model.MainFiatCurrencySymbol + Model.Summary.MainMarketPrice.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")))
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="card-box card-box-mini card-box-success-outlined" data-toggle="tooltip" data-placement="bottom" title="Approximate total value in @Model.Summary.MainMarket">
|
||||
<b>TV:</b> @currentBalanceString @Model.Summary.MainMarket
|
||||
<div class="card-box card-box-mini card-box-ptmagic-outlined" data-toggle="tooltip" data-placement="bottom" title="Active global setting">
|
||||
@Core.Helper.SystemHelper.SplitCamelCase(Model.Summary.CurrentGlobalSetting.SettingName)
|
||||
</div>
|
||||
|
||||
<div class="card-box card-box-mini card-box-ptmagic-outlined" data-toggle="tooltip" data-placement="bottom" title="Active single market settings">
|
||||
|
@ -44,7 +38,7 @@
|
|||
</div>
|
||||
|
||||
<div class="card-box card-box-mini card-box-ptmagic-status-outlined @iconColor" data-toggle="tooltip" data-placement="bottom" title="@ptMagicHealthTooltip">
|
||||
<b>PTM: </b><i class="fa @ptMagicHealthIcon @iconColor"></i>
|
||||
<i class="fa @ptMagicHealthIcon @iconColor"></i>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -71,12 +71,6 @@
|
|||
font-size: 0.78571rem;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 991px) {
|
||||
.ticker-widgets {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
|
||||
.ticker-widgets div {
|
||||
display: inline-block;
|
||||
margin-top: 12px;
|
||||
|
|
|
@ -7,7 +7,7 @@ using Core.Helper;
|
|||
using Core.Main.DataObjects.PTMagicData;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
[assembly: AssemblyVersion("2.1.3")]
|
||||
[assembly: AssemblyVersion("2.2.0")]
|
||||
[assembly: AssemblyProduct("PT Magic")]
|
||||
|
||||
namespace PTMagic
|
||||
|
|
Loading…
Reference in New Issue