misc layout and text
This commit is contained in:
parent
488e4c3fd3
commit
d45ac106ad
|
@ -155,14 +155,14 @@ else
|
|||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card-box">
|
||||
<h4 class="m-t-0 m-b-20 header-title"><b>Market Trend Averages at @Model.PTMagicConfiguration.GeneralSettings.Application.Exchange</b></h4>
|
||||
<h4 class="m-t-0 m-b-20 header-title"><b>Live Trends at @Model.PTMagicConfiguration.GeneralSettings.Application.Exchange</b></h4>
|
||||
<table class="table table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th class="text-right">Markets</th>
|
||||
<th class="text-right">Timeframe</th>
|
||||
<th class="text-right">Threshold %</th>
|
||||
<th class="text-right">Threshold <i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="Pairs exceeding this threshold are excluded from the trend average."></i></th>
|
||||
<th class="text-right">Change</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -190,9 +190,9 @@ else
|
|||
}
|
||||
else
|
||||
{
|
||||
<td class="text-right">@marketTrend.TrendThreshold</td>
|
||||
<td class="text-right">@marketTrend.TrendThreshold %</td>
|
||||
}
|
||||
<td class="text-right text-autocolor">@trendChangeOutput%</td>
|
||||
<td class="text-right text-autocolor bold-text" >@trendChangeOutput%</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,8 +118,8 @@
|
|||
<th></th>
|
||||
<th class="text-right">Total</th>
|
||||
<th class="text-right">AVG/Day</span></th>
|
||||
<th class="text-right">AVG/Month (@totalMonths Months)</span> <small><i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top"
|
||||
title="Total months is based on the size of the actual calendar months."></i></small></th>
|
||||
<th class="text-right">AVG/Month</span> <small><i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top"
|
||||
title="Months are based on the size of the calendar months. Weighted to compensate for partial months."></i></small></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -151,7 +151,7 @@
|
|||
<td class="text-right text-autocolor">@Html.Raw(Math.Round(totalProfitFiat / totalMonths, 0).ToString("#,#0", new System.Globalization.CultureInfo("en-US")))</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>% Gain</th>
|
||||
<th>Gain</th>
|
||||
<td class="text-right text-autocolor">@totalPercentGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) %</td>
|
||||
<td class="text-right text-autocolor">@avgDailyGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) %</td>
|
||||
<td class="text-right text-autocolor">@avgMonthlyGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) %</td>
|
||||
|
@ -175,9 +175,9 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th class="text-right"></th>
|
||||
<th class="text-right">Est. TCV</th>
|
||||
<th class="text-right">Est. @Model.PTData.Properties.Currency Value</th>
|
||||
<th class="text-right">Est. Gain</th>
|
||||
<th class="text-right">@Model.PTData.Misc.Market</th>
|
||||
<th class="text-right">@Model.PTData.Properties.Currency</th>
|
||||
<th class="text-right">Gain</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -217,6 +217,9 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card-box">
|
||||
|
@ -232,7 +235,7 @@
|
|||
<th class="text-right">Sales</th>
|
||||
<th class="text-right">Profit @Model.Summary.MainMarket</th>
|
||||
<th class="text-right">Profit @Model.PTData.Properties.Currency</th>
|
||||
<th class="text-right">% Gain</th>
|
||||
<th class="text-right">Gain</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -261,7 +264,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="col-md-6">
|
||||
<div class="card-box">
|
||||
@{
|
||||
var maxMonths = Math.Min(Model.PTMagicConfiguration.GeneralSettings.Monitor.MaxMonthlySummaries, Model.MonthlyStats.Count);
|
||||
|
@ -274,7 +277,7 @@
|
|||
<th class="text-right">Sales</th>
|
||||
<th class="text-right">Profit @Model.Summary.MainMarket</th>
|
||||
<th class="text-right">Profit @Model.PTData.Properties.Currency</th>
|
||||
<th class="text-right">% Growth</th>
|
||||
<th class="text-right">Growth</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -282,11 +285,11 @@
|
|||
for (int i = 0; i < maxMonths; i++)
|
||||
{
|
||||
DateTime monthDate = DateTime.ParseExact(Model.PTData.MonthlyStats[i].Month, "M-yyyy", CultureInfo.InvariantCulture);
|
||||
string monthName = monthDate.ToString("MMMM yyyy", CultureInfo.InvariantCulture);
|
||||
string monthName = monthDate.ToString("MMMM", CultureInfo.InvariantCulture);
|
||||
var sales = Model.PTData.MonthlyStats[i].TotalSales;
|
||||
var profit = Model.PTData.MonthlyStats[i].TotalProfitCurrency;
|
||||
var profitFiat = Math.Round(profit * Model.PTData.Misc.FiatConversionRate, 0);
|
||||
var growth = Model.PTData.MonthlyStats[i].AvgGrowth;
|
||||
var growth = Math.Round(Model.PTData.MonthlyStats[i].AvgGrowth,2);
|
||||
<tr>
|
||||
<td>@monthName</td>
|
||||
<td class="text-right text-autocolor">@sales</td>
|
||||
|
@ -298,8 +301,10 @@
|
|||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div
|
||||
</div>
|
||||
|
||||
@* <div class="col-md-6"> *@
|
||||
<div class="card-box">
|
||||
<h4 class="m-t-0 header-title"><b>Top @Model.PTMagicConfiguration.GeneralSettings.Monitor.MaxTopMarkets Sales Markets</b></h4>
|
||||
<table class="tablesaw table m-b-0" data-tablesaw-sortable data-tablesaw-sortable-switch>
|
||||
|
@ -310,7 +315,6 @@
|
|||
<th scope="col" class="text-right" data-tablesaw-sortable-col>Profit @Model.PTData.Misc.Market</th>
|
||||
<th scope="col" class="text-right" data-tablesaw-sortable-col>Sales</th>
|
||||
<th scope="col" class="text-right" data-tablesaw-sortable-col>Avg/Trade</th>
|
||||
<th scope="col" class="text-right" data-tablesaw-sortable-col>Profit @Model.PTData.Properties.Currency</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -329,7 +333,6 @@
|
|||
<td class="text-right text-autocolor-saw">@profit</td>
|
||||
<td class="text-right">@sales</td>
|
||||
<td class="text-right text-autocolor-saw">@avg </td>
|
||||
<td class="text-right text-autocolor-saw">@profitFiat</td>
|
||||
</tr>
|
||||
rank++;
|
||||
}
|
||||
|
@ -337,7 +340,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@* </div> *@
|
||||
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-5 px-1">
|
||||
<div class="card-box px-2" style="height:340px;">
|
||||
<h4 class="m-t-0 m-b-20 header-title" style="display: inline;"><b>Market Trend History </b><i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="@Math.Round(Model.DataHours, 1) hours of data available. Currently set to show @Model.PTMagicConfiguration.GeneralSettings.Monitor.GraphMaxTimeframeHours hours in general settings."></i></h4>
|
||||
<h4 class="m-t-0 m-b-20 header-title" style="display: inline;"><b>Market Trend History </b><i class="fa fa-info-circle text-muted" style="font-size x-small" data-toggle="tooltip" data-placement="top" title="@Math.Round(Model.DataHours, 1) hours of data available. Currently set to show @Model.PTMagicConfiguration.GeneralSettings.Monitor.GraphMaxTimeframeHours hours in general settings."></i></h4>
|
||||
@if (!Model.TrendChartDataJSON.Equals("")) {
|
||||
<div class="trend-chart">
|
||||
<svg style="height: 300px;width: 100%;"></svg>
|
||||
|
@ -53,7 +53,7 @@
|
|||
<div class="col-md-4 px-1">
|
||||
@*<div class="cdev" data-percent="100" data-duration="@Html.Raw(@Model.PTMagicConfiguration.GeneralSettings.Monitor.RefreshSeconds * 1000)" data-color="#aaa,#414d59"></div>*@
|
||||
<div class="card-box px-2" style="height:340px;">
|
||||
<h4 class="m-t-0 m-b-20 header-title" style="display: inline;"><b>Daily Profit </b><i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="@Model.ProfitDays days of data available. Currently Set to @Model.PTMagicConfiguration.GeneralSettings.Monitor.ProfitsMaxTimeframeDays days in general settings."></i>
|
||||
<h4 class="m-t-0 m-b-20 header-title" style="display: inline;">Daily Profit <i class="fa fa-info-circle text-muted" style="font-size x-small" data-toggle="tooltip" data-placement="top" title="@Model.ProfitDays days of data available. Currently Set to @Model.PTMagicConfiguration.GeneralSettings.Monitor.ProfitsMaxTimeframeDays days in general settings."></i>
|
||||
@if (!Model.ProfitChartDataJSON.Equals("")) {
|
||||
<div class="profit-chart">
|
||||
<svg style="height:300px;width:100%"></svg>
|
||||
|
@ -70,9 +70,9 @@
|
|||
<div class="card-box px-3">
|
||||
@* <div class="cdev" data-percent="100" data-duration="@Html.Raw(@Model.PTMagicConfiguration.GeneralSettings.Monitor.RefreshSeco;nds * 1000)" data-color="#aaa,#414d59"></div>
|
||||
<br> *@
|
||||
<h4 class="m-t-0 m-b-20 header-title">Live Trends <small> (@Model.PTMagicConfiguration.GeneralSettings.Application.Exchange)  </small>
|
||||
<i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="Set to refresh every @Model.PTMagicConfiguration.GeneralSettings.Monitor.RefreshSeconds seconds in general settings."></i>
|
||||
<small class="pull-right" style="font-size: small"><a href="@Html.Raw(Model.PTMagicConfiguration.GeneralSettings.Monitor.RootUrl)MarketAnalyzer">ANALYZER</a></small>
|
||||
<h4 class="m-t-0 m-b-20 header-title">Live Trends
|
||||
<i class="fa fa-info-circle text-muted" style="font-size small" data-toggle="tooltip" data-placement="top" title="Set to refresh every @Model.PTMagicConfiguration.GeneralSettings.Monitor.RefreshSeconds seconds in general settings."></i>
|
||||
<small class="pull-right" style="font-size: x-small"><a href="@Html.Raw(Model.PTMagicConfiguration.GeneralSettings.Monitor.RootUrl)MarketAnalyzer">ANALYZER</a></small>
|
||||
</h4>
|
||||
<table class="table table-sm">
|
||||
<thead>
|
||||
|
@ -127,7 +127,7 @@
|
|||
<div class="col-md-7 px-1">
|
||||
<div class="card-box px-3">
|
||||
<h4 class="m-t-0 m-b-20 header-title">Sales Overview
|
||||
<i class="fa fa-info-circle text-muted" data-toggle="tooltip" data-placement="top" title="All data acquired via Profit Trailer API."></i>
|
||||
<i class="fa fa-info-circle text-muted" style="font-size x-small" data-toggle="tooltip" data-placement="top" title="All data acquired via Profit Trailer API."></i>
|
||||
<small class="pull-right" style="font-size: small"><a href="@Html.Raw(Model.PTMagicConfiguration.GeneralSettings.Monitor.RootUrl)SalesAnalyzer">ANALYZER</a></small>
|
||||
</h4>
|
||||
@{
|
||||
|
|
Loading…
Reference in New Issue