Commit 6ed1ddb5 authored by Nora Widdecke's avatar Nora Widdecke
Browse files

Display sequoia-openpgp version.

parent 5a26c1f3
......@@ -30,6 +30,7 @@ struct TemplateContext {
include_permalink: bool,
version: String,
commit: String,
sequoia_version: String,
}
impl Default for TemplateContext {
......@@ -46,6 +47,7 @@ impl Default for TemplateContext {
commit: option_env!("COMMIT_SHA")
.unwrap_or(env!("VERGEN_SHA_SHORT"))
.to_string(),
sequoia_version: openpgp::VERSION.to_string(),
}
}
}
......@@ -130,6 +132,7 @@ fn decode(data: Option<&String>, hex: bool, mpis: bool,
commit: option_env!("COMMIT_SHA")
.unwrap_or(env!("VERGEN_SHA_SHORT"))
.to_string(),
sequoia_version: openpgp::VERSION.to_string(),
}
} else {
TemplateContext::default()
......
......@@ -14,7 +14,7 @@
v{{ version }} built from
<a href="https://gitlab.com/sequoia-pgp/dump.sequoia-pgp.org/commit/{{ commit }}">{{ commit }}</a>
</p>
<p>Powered by <a href="https://sequoia-pgp.org">Sequoia-PGP</a>
<p>Powered by <a href="https://sequoia-pgp.org">Sequoia-PGP</a> v{{ sequoia_version }}
</div>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment