From b144154dddac26edf9b55f70774cd40e1fd15b6e Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 30 Jan 2017 16:27:33 +0800 Subject: [PATCH] use html default header in tx pusher --- src/page.h | 7 ++++--- src/templates/checkrawtx.html | 20 ++------------------ src/templates/pushrawtx.html | 20 ++------------------ src/templates/rawtx.html | 20 ++------------------ 4 files changed, 10 insertions(+), 57 deletions(-) diff --git a/src/page.h b/src/page.h index d399d5b..af3afb7 100644 --- a/src/page.h +++ b/src/page.h @@ -1745,7 +1745,7 @@ public: string rawtx_html = xmreg::read(TMPL_MY_RAWTX); // add header and footer - string full_page = rawtx_html + get_footer(); + string full_page = get_full_page(rawtx_html); add_css_style(context); @@ -2370,11 +2370,12 @@ public: {"tx_details", xmreg::read(string(TMPL_PARIALS_DIR) + "/tx_details.html")}, }; + // read checkrawtx.html string checkrawtx_html = xmreg::read(TMPL_MY_CHECKRAWTX); // add header and footer - string full_page = checkrawtx_html + get_footer(); + string full_page = get_full_page(checkrawtx_html); add_css_style(context); @@ -2407,7 +2408,7 @@ public: string pushrawtx_html = xmreg::read(TMPL_MY_PUSHRAWTX); // add header and footer - string full_page = pushrawtx_html + get_footer(); + string full_page = get_full_page(pushrawtx_html); add_css_style(context); diff --git a/src/templates/checkrawtx.html b/src/templates/checkrawtx.html index c532fba..0724a4b 100644 --- a/src/templates/checkrawtx.html +++ b/src/templates/checkrawtx.html @@ -1,24 +1,8 @@ - - - - - - {{#refresh}} - - {{/refresh}} - Onion Monero Blockchain Explorer - - - - -
-

Onion Monero Transaction Pusher

-

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

+
+

Transaction checking

diff --git a/src/templates/pushrawtx.html b/src/templates/pushrawtx.html index 5278890..b8d330d 100644 --- a/src/templates/pushrawtx.html +++ b/src/templates/pushrawtx.html @@ -1,24 +1,8 @@ - - - - - - {{#refresh}} - - {{/refresh}} - Onion Monero Blockchain Explorer - - - - -
-

Onion Monero Transaction Pusher

-

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

+
+

Transaction Pusher

diff --git a/src/templates/rawtx.html b/src/templates/rawtx.html index 75b0052..e706de6 100644 --- a/src/templates/rawtx.html +++ b/src/templates/rawtx.html @@ -1,24 +1,8 @@ - - - - - - {{#refresh}} - - {{/refresh}} - Onion Monero Blockchain Explorer - - - - -
-

Onion Monero Transaction Pusher

-

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

+
+

Transaction Pusher