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
9e4e4022c8
commit
2fee4523fd
2 changed files with 5 additions and 8 deletions
11
src/page.h
11
src/page.h
|
@ -654,17 +654,14 @@ namespace xmreg {
|
||||||
// get mixins in time scale for visual representation
|
// get mixins in time scale for visual representation
|
||||||
pair<string, double> mixin_times_scale = xmreg::timestamps_time_scale(
|
pair<string, double> mixin_times_scale = xmreg::timestamps_time_scale(
|
||||||
mixin_timestamps,
|
mixin_timestamps,
|
||||||
server_timestamp, 160);
|
server_timestamp, 165);
|
||||||
|
|
||||||
// add beginning and end to the mixin_times_scale
|
// add beginning and end to the mixin_times_scale
|
||||||
string timescale_str = string("|")
|
string timescale_str = mixin_times_scale.first;
|
||||||
+ mixin_times_scale.first
|
|
||||||
+ string(">");
|
|
||||||
|
|
||||||
timescale_scale = mixin_times_scale.second ;
|
|
||||||
|
|
||||||
// save the string timescales for later to show
|
// save the string timescales for later to show
|
||||||
mixins_timescales.push_back(mstch::map {{"timescale", timescale_str}});
|
mixins_timescales.push_back(mstch::map {
|
||||||
|
{"timescale", mixin_times_scale.first}});
|
||||||
}
|
}
|
||||||
|
|
||||||
context["server_time"] = server_time_str;
|
context["server_time"] = server_time_str;
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<ul class="center">
|
<ul class="center">
|
||||||
{{#timescales}}
|
{{#timescales}}
|
||||||
<li style="list-style-type: none; text-align: center; font-size: 8px">{{timescale}}</li>
|
<li style="list-style-type: none; text-align: center; font-size: 8px">|{{timescale}}|</li>
|
||||||
{{/timescales}}
|
{{/timescales}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue