timescale appearance improved

This commit is contained in:
moneroexamples 2016-04-21 05:13:24 +00:00
parent 9e4e4022c8
commit 2fee4523fd
2 changed files with 5 additions and 8 deletions

View file

@ -654,17 +654,14 @@ namespace xmreg {
// get mixins in time scale for visual representation
pair<string, double> mixin_times_scale = xmreg::timestamps_time_scale(
mixin_timestamps,
server_timestamp, 160);
server_timestamp, 165);
// add beginning and end to the mixin_times_scale
string timescale_str = string("|")
+ mixin_times_scale.first
+ string(">");
timescale_scale = mixin_times_scale.second ;
string timescale_str = mixin_times_scale.first;
// 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;

View file

@ -55,7 +55,7 @@
<div class="center">
<ul class="center">
{{#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}}
</ul>
</div>