| @@ -30,8 +30,8 @@ route_restricted = make_route_restricter( | |||||
| MakoTemplates(app) | MakoTemplates(app) | ||||
| set_up_asset_versioning(app) | set_up_asset_versioning(app) | ||||
| config.install(app) | |||||
| calefaction.enable_logging() | calefaction.enable_logging() | ||||
| config.install(app) | |||||
| @app.before_request | @app.before_request | ||||
| def prepare_request(): | def prepare_request(): | ||||
| @@ -18,6 +18,15 @@ corp: | |||||
| # Full corp name (doesn't need to match in-game name exactly, but it should): | # Full corp name (doesn't need to match in-game name exactly, but it should): | ||||
| name: My Corp Name Here | name: My Corp Name Here | ||||
| modules: | |||||
| # Most site functionality comes from optional modules selected based on your | |||||
| # corp's needs. They are located in the calefaction/modules/ directory. The | |||||
| # order below determines how they appear in the navigation menu. | |||||
| # List of enabled modules: | |||||
| - campaigns | |||||
| - map | |||||
| - members | |||||
| auth: | auth: | ||||
| # Secure session signing key. Never share with anyone. Can generate with | # Secure session signing key. Never share with anyone. Can generate with | ||||
| # "import base64, os; base64.b64encode(os.urandom(24))": | # "import base64, os; base64.b64encode(os.urandom(24))": | ||||
| @@ -25,9 +34,8 @@ auth: | |||||
| # You need to create an application at | # You need to create an application at | ||||
| # https://developers.eveonline.com/applications for this corp's website. | # https://developers.eveonline.com/applications for this corp's website. | ||||
| # Set the callback URL to http(s)://<your domain>/login (match the protocol | # Set the callback URL to http(s)://<your domain>/login (match the protocol | ||||
| # with "site.https" above) and the scopes to: | |||||
| # - publicData | |||||
| # - ... | |||||
| # with "site.https" above) and the scopes to whatever is required by the | |||||
| # modules you've enabled. | |||||
| # SSO client ID: | # SSO client ID: | ||||
| client_id: a290afea820b8dd8c46d3883898ab66d | client_id: a290afea820b8dd8c46d3883898ab66d | ||||
| # SSO client secret: | # SSO client secret: | ||||
| @@ -24,8 +24,8 @@ a:hover { | |||||
| text-decoration: underline; | text-decoration: underline; | ||||
| } | } | ||||
| h1 { | |||||
| margin-top: 0.5em; | |||||
| h2 { | |||||
| margin: 0.5em 0; | |||||
| } | } | ||||
| #container { | #container { | ||||
| @@ -158,8 +158,10 @@ footer ul li:not(:last-child):after { | |||||
| margin-right: 0.25em; | margin-right: 0.25em; | ||||
| } | } | ||||
| #corp-masthead span { | |||||
| #corp-masthead h1 { | |||||
| display: inline; | |||||
| font-size: 120%; | font-size: 120%; | ||||
| font-weight: normal; | |||||
| } | } | ||||
| #corp-masthead > * { | #corp-masthead > * { | ||||
| @@ -2,5 +2,5 @@ | |||||
| <%block name="title"> | <%block name="title"> | ||||
| 404 – ${g.config.get("corp.name") | h} | 404 – ${g.config.get("corp.name") | h} | ||||
| </%block> | </%block> | ||||
| <h1>Error 404</h1> | |||||
| <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> | ||||
| @@ -27,7 +27,7 @@ | |||||
| <%block name="lefthead"> | <%block name="lefthead"> | ||||
| <a id="corp-masthead" title="Home" href="${url_for('index')}"> | <a id="corp-masthead" title="Home" href="${url_for('index')}"> | ||||
| <img alt="Logo" src="${g.eve.image.corp(g.config.get('corp.id'), 256)}"/> | <img alt="Logo" src="${g.eve.image.corp(g.config.get('corp.id'), 256)}"/> | ||||
| <span>${g.config.get("corp.name") | h}</span> | |||||
| <h1>${g.config.get("corp.name") | h}</h1> | |||||
| </a> | </a> | ||||
| </%block> | </%block> | ||||
| </div> | </div> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <%block name="title"> | <%block name="title"> | ||||
| Error – ${g.config.get("corp.name") | h} | Error – ${g.config.get("corp.name") | h} | ||||
| </%block> | </%block> | ||||
| <h1>Error!</h1> | |||||
| <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> | ||||
| <div id="error"> | <div id="error"> | ||||
| <pre>${traceback | trim,h}</pre> | <pre>${traceback | trim,h}</pre> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <%block name="title"> | <%block name="title"> | ||||
| Log out – ${g.config.get("corp.name") | h} | Log out – ${g.config.get("corp.name") | h} | ||||
| </%block> | </%block> | ||||
| <h1>Log out</h1> | |||||
| <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> | ||||
| <form id="logout-form" method="post"> | <form id="logout-form" method="post"> | ||||
| <input type="submit" value="Log out"> | <input type="submit" value="Log out"> | ||||