timescale appearance improved

master
moneroexamples 9 years ago
parent 9e4e4022c8
commit 2fee4523fd

@ -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…
Cancel
Save