Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
<div id="copyright">
<div class="container">
- {% if ssl_protocol %}
- <p class="pull-right">
- <span class="fa fa-lock"></span> {{ ssl_protocol }}
- {% if ssl_cipher %}({{ ssl_cipher }}){% end %}
- </p>
- {% end %}
-
<p>© {{ year }} - {{ _("IPFire is free software written by the IPFire Project") }}</p>
</div>
</div>
# Remove the development prefix
return self.request.host.replace(".dev.", ".")
- @property
- def ssl_params(self):
- return {
- "ssl_cipher" : self.request.headers.get("X-Https-Cipher", None),
- "ssl_protocol" : self.request.headers.get("X-Https-Protocol", None),
- }
-
@property
def render_args(self):
today = datetime.date.today()
"hostname" : self.hostname,
"year" : today.year,
}
- ret.update(self.ssl_params)
return ret