@@ -1,6 +1,6 @@ | |||||
<%inherit file="_base.mako"/> | <%inherit file="_base.mako"/> | ||||
<%block name="title"> | <%block name="title"> | ||||
404 – ${g.config.get("corp.name") | h} | |||||
${self.maketitle("404")} | |||||
</%block> | </%block> | ||||
<h2>Error 404</h2> | <h2>Error 404</h2> | ||||
<p>The page you asked for couldn't be found.</p> | <p>The page you asked for couldn't be found.</p> |
@@ -3,7 +3,16 @@ | |||||
<head> | <head> | ||||
<meta charset="utf-8"> | <meta charset="utf-8"> | ||||
<title> | <title> | ||||
<%block name="title">${g.config.get("corp.name") | h}</%block> | |||||
<%def name="maketitle(*parts)"> | |||||
<% | |||||
if request.url_rule.endpoint == "index": | |||||
parts = () | |||||
%> | |||||
${" | ".join(parts + (g.config.get("corp.name"),)) | h} | |||||
</%def> | |||||
<%block name="title"> | |||||
${maketitle()} | |||||
</%block> | |||||
</title> | </title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
<link rel="canonical" href="${g.config.scheme}://${g.config.get('site.canonical')}${request.script_root}${request.path}"> | <link rel="canonical" href="${g.config.scheme}://${g.config.get('site.canonical')}${request.script_root}${request.path}"> | ||||
@@ -1,6 +1,6 @@ | |||||
<%inherit file="../_default.mako"/> | <%inherit file="../_default.mako"/> | ||||
<%block name="title"> | <%block name="title"> | ||||
${campaign["title"] | h} – Campaign – ${g.config.get("corp.name") | h} | |||||
${self.maketitle(campaign["title"], "Campaign")} | |||||
</%block> | </%block> | ||||
<h2><span class="understate">Campaign:</span> ${campaign["title"] | h}</h2> | <h2><span class="understate">Campaign:</span> ${campaign["title"] | h}</h2> | ||||
<p>Hello! ...</p> | <p>Hello! ...</p> |
@@ -1,6 +1,6 @@ | |||||
<%inherit file="_base.mako"/> | <%inherit file="_base.mako"/> | ||||
<%block name="title"> | <%block name="title"> | ||||
Error – ${g.config.get("corp.name") | h} | |||||
${self.maketitle("Error")} | |||||
</%block> | </%block> | ||||
<h2>Error!</h2> | <h2>Error!</h2> | ||||
<p>You may report the following information to the developers:</p> | <p>You may report the following information to the developers:</p> | ||||
@@ -1,6 +1,6 @@ | |||||
<%inherit file="_base.mako"/> | <%inherit file="_base.mako"/> | ||||
<%block name="title"> | <%block name="title"> | ||||
Log out – ${g.config.get("corp.name") | h} | |||||
${self.maketitle("Log out")} | |||||
</%block> | </%block> | ||||
<h2>Log out</h2> | <h2>Log out</h2> | ||||
<p>Use the button below to safely log out and clear your session.</p> | <p>Use the button below to safely log out and clear your session.</p> | ||||
@@ -1,6 +1,6 @@ | |||||
<%inherit file="../_default.mako"/> | <%inherit file="../_default.mako"/> | ||||
<%block name="title"> | <%block name="title"> | ||||
Members – ${g.config.get("corp.name") | h} | |||||
${self.maketitle("Members")} | |||||
</%block> | </%block> | ||||
<h2>Members</h2> | <h2>Members</h2> | ||||
% if members: | % if members: | ||||