Browse Source

Add modules to config; recast corp title as h1.

master
Ben Kurtovic 7 years ago
parent
commit
9da51282ee
8 changed files with 21 additions and 11 deletions
  1. +1
    -1
      app.py
  2. +0
    -0
     
  3. +11
    -3
      config/config.yml.sample
  4. +5
    -3
      static/main.css
  5. +1
    -1
      templates/404.mako
  6. +1
    -1
      templates/_base.mako
  7. +1
    -1
      templates/error.mako
  8. +1
    -1
      templates/logout.mako

+ 1
- 1
app.py View File

@@ -30,8 +30,8 @@ route_restricted = make_route_restricter(

MakoTemplates(app)
set_up_asset_versioning(app)
config.install(app)
calefaction.enable_logging()
config.install(app)

@app.before_request
def prepare_request():


+ 0
- 0
View File


+ 11
- 3
config/config.yml.sample View File

@@ -18,6 +18,15 @@ corp:
# Full corp name (doesn't need to match in-game name exactly, but it should):
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:
# Secure session signing key. Never share with anyone. Can generate with
# "import base64, os; base64.b64encode(os.urandom(24))":
@@ -25,9 +34,8 @@ auth:
# You need to create an application at
# https://developers.eveonline.com/applications for this corp's website.
# 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:
client_id: a290afea820b8dd8c46d3883898ab66d
# SSO client secret:


+ 5
- 3
static/main.css View File

@@ -24,8 +24,8 @@ a:hover {
text-decoration: underline;
}

h1 {
margin-top: 0.5em;
h2 {
margin: 0.5em 0;
}

#container {
@@ -158,8 +158,10 @@ footer ul li:not(:last-child):after {
margin-right: 0.25em;
}

#corp-masthead span {
#corp-masthead h1 {
display: inline;
font-size: 120%;
font-weight: normal;
}

#corp-masthead > * {


+ 1
- 1
templates/404.mako View File

@@ -2,5 +2,5 @@
<%block name="title">
404 &ndash; ${g.config.get("corp.name") | h}
</%block>
<h1>Error 404</h1>
<h2>Error 404</h2>
<p>The page you asked for couldn't be found.</p>

+ 1
- 1
templates/_base.mako View File

@@ -27,7 +27,7 @@
<%block name="lefthead">
<a id="corp-masthead" title="Home" href="${url_for('index')}">
<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>
</%block>
</div>


+ 1
- 1
templates/error.mako View File

@@ -2,7 +2,7 @@
<%block name="title">
Error &ndash; ${g.config.get("corp.name") | h}
</%block>
<h1>Error!</h1>
<h2>Error!</h2>
<p>You may report the following information to the developers:</p>
<div id="error">
<pre>${traceback | trim,h}</pre>


+ 1
- 1
templates/logout.mako View File

@@ -2,7 +2,7 @@
<%block name="title">
Log out &ndash; ${g.config.get("corp.name") | h}
</%block>
<h1>Log out</h1>
<h2>Log out</h2>
<p>Use the button below to safely log out and clear your session.</p>
<form id="logout-form" method="post">
<input type="submit" value="Log out">


Loading…
Cancel
Save