diff --git a/CMakeLists.txt b/CMakeLists.txt index 571de21..e9d65eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/monero_headers.h b/src/monero_headers.h index d33b7c0..2ef5505 100644 --- a/src/monero_headers.h +++ b/src/monero_headers.h @@ -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" diff --git a/src/page.h b/src/page.h index 7c3235f..78fbb16 100644 --- a/src/page.h +++ b/src/page.h @@ -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); diff --git a/src/templates/footer.html b/src/templates/footer.html index be83593..3d286a1 100644 --- a/src/templates/footer.html +++ b/src/templates/footer.html @@ -1,8 +1,10 @@
- source code | version: {{last_git_commit_date}} | last commit hash: {{last_git_commit_hash}} + source code + | explorer version: {{last_git_commit_date}}-{{last_git_commit_hash}} + | monero version: {{monero_version_full}} +
-