monero version added into the footer

This commit is contained in:
moneroexamples 2017-01-31 05:36:32 +08:00
parent 7a806de1ec
commit a287cb7ef0
4 changed files with 8 additions and 3 deletions

View file

@ -36,6 +36,7 @@ set(MONERO_HEADERS_DIR
include_directories(
${MONERO_HEADERS_DIR}/src
${MONERO_HEADERS_DIR}/external
${MONERO_HEADERS_DIR}/build
${MONERO_HEADERS_DIR}/contrib/epee/include
${MONERO_HEADERS_DIR}/external/easylogging++
${MONERO_HEADERS_DIR}/external/db_drivers/liblmdb)

View file

@ -14,6 +14,7 @@
#define KEY_IMAGE_EXPORT_FILE_MAGIC "Monero key image export\002"
#define OUTPUT_EXPORT_FILE_MAGIC "Monero output export\003"
#include "release/version/version.h"
#include "net/http_client.h"
#include "storages/http_abstract_invoke.h"

View file

@ -4736,7 +4736,8 @@ private:
// autogenrated version.h during compilation
static const mstch::map footer_context {
{"last_git_commit_hash", string {GIT_COMMIT_HASH}},
{"last_git_commit_date", string {GIT_COMMIT_DATETIME}}
{"last_git_commit_date", string {GIT_COMMIT_DATETIME}},
{"monero_version_full" , string {MONERO_VERSION_FULL}},
};
string footer_html = mstch::render(xmreg::read(TMPL_FOOTER), footer_context);

View file

@ -1,8 +1,10 @@
<div class="center">
<h6 style="margin-top:10px">
<a href="https://github.com/moneroexamples/onion-monero-blockchain-explorer">source code</a> | version: {{last_git_commit_date}} | last commit hash: {{last_git_commit_hash}}
<a href="https://github.com/moneroexamples/onion-monero-blockchain-explorer">source code</a>
| explorer version: {{last_git_commit_date}}-{{last_git_commit_hash}}
| monero version: {{monero_version_full}}
</h6>
</h6>
</div>
</body>
</html>