From f6447f1e39077f7ec9782f6195207f5004c723be Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 21 Apr 2016 04:52:40 +0000 Subject: [PATCH] timescale appearance improved --- src/page.h | 7 ++++--- src/templates/header.html | 5 +++-- src/templates/tx.html | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/page.h b/src/page.h index 578ee6e..a4652ff 100644 --- a/src/page.h +++ b/src/page.h @@ -654,12 +654,12 @@ namespace xmreg { // get mixins in time scale for visual representation pair 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}", diff --git a/src/templates/header.html b/src/templates/header.html index fa08551..19f2d11 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -2,6 +2,7 @@ + {{#refresh}} {{/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 @@

Onion Monero Blockchain Explorer

(no javascript - no web analytics trackers - no images - open sourced)

-
\ No newline at end of file + diff --git a/src/templates/tx.html b/src/templates/tx.html index 580e65f..6a1fde9 100644 --- a/src/templates/tx.html +++ b/src/templates/tx.html @@ -74,10 +74,11 @@

Mixins time scale (resolution: {{timescales_scale}} days)

+

From Gensis till {{server_time}}

    {{#timescales}} -
  • {{timescale}}
  • +
  • {{timescale}}
  • {{/timescales}}