mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
timescale appearance improved
This commit is contained in:
parent
bb362fe242
commit
f6447f1e39
3 changed files with 9 additions and 6 deletions
|
@ -654,12 +654,12 @@ namespace xmreg {
|
|||
// get mixins in time scale for visual representation
|
||||
pair<string, double> mixin_times_scale = xmreg::timestamps_time_scale(
|
||||
mixin_timestamps,
|
||||
server_timestamp, 100);
|
||||
server_timestamp, 140);
|
||||
|
||||
// add beginning and end to the mixin_times_scale
|
||||
string timescale_str = string("Genesis<")
|
||||
string timescale_str = string("|")
|
||||
+ mixin_times_scale.first
|
||||
+ string(">") + server_time_str;
|
||||
+ string(">");
|
||||
|
||||
timescale_scale = mixin_times_scale.second ;
|
||||
|
||||
|
@ -667,6 +667,7 @@ namespace xmreg {
|
|||
mixins_timescales.push_back(mstch::map {{"timescale", timescale_str}});
|
||||
}
|
||||
|
||||
context["server_time"] = server_time_str;
|
||||
context["inputs"] = inputs;
|
||||
context["timescales"] = mixins_timescales;
|
||||
context["timescales_scale"] = fmt::format("{:0.2f}",
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
|
||||
{{#refresh}}
|
||||
<meta http-equiv="refresh" content="10">
|
||||
{{/refresh}}
|
||||
|
@ -26,7 +27,7 @@
|
|||
padding: 10px;*/
|
||||
}
|
||||
|
||||
tr {
|
||||
tr, li {
|
||||
font-family: "Lucida Console", Monaco, monospace;
|
||||
font-size : 12px;
|
||||
height: 22px;
|
||||
|
@ -64,4 +65,4 @@
|
|||
<div class="center">
|
||||
<h1 class="center"><a href="/">Onion Monero Blockchain Explorer</a></h1>
|
||||
<h4 style="font-size: 15px; margin: 0px">(no javascript - no web analytics trackers - no images - open sourced)</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -74,10 +74,11 @@
|
|||
|
||||
|
||||
<h3>Mixins time scale (resolution: {{timescales_scale}} days)</h3>
|
||||
<h4>From Gensis till {{server_time}}</h4>
|
||||
<div class="center">
|
||||
<ul class="center">
|
||||
{{#timescales}}
|
||||
<li class="center" style="list-style-type: none;">{{timescale}}</li>
|
||||
<li style="list-style-type: none; text-align: center;">{{timescale}}</li>
|
||||
{{/timescales}}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue