Merge "Allow for overriding title"
This commit is contained in:
commit
ce0c909125
6
README
6
README
@ -64,3 +64,9 @@ Now start the development server::
|
||||
python manage.py runserver
|
||||
|
||||
Enjoy!
|
||||
|
||||
Environment Settings
|
||||
====================
|
||||
|
||||
LODGEIT_TITLE_OVERRIDE : <string>
|
||||
Arbitrary string to override the main heading for site customisation
|
||||
|
@ -8,6 +8,7 @@
|
||||
:license: BSD
|
||||
"""
|
||||
import base64
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
from os import path
|
||||
@ -45,6 +46,8 @@ def url_for(endpoint, external=False, **values):
|
||||
|
||||
|
||||
jinja_environment.globals['url_for'] = url_for
|
||||
jinja_environment.globals['title'] = \
|
||||
os.getenv('LODGEIT_TITLE_OVERRIDE', 'Lodge It')
|
||||
|
||||
|
||||
def generate_user_hash():
|
||||
|
@ -18,7 +18,7 @@
|
||||
<body>
|
||||
<div class="page">
|
||||
<div id="header">
|
||||
<h1>Lodge It</h1>
|
||||
<h1>{{ title }}</h1>
|
||||
</div>
|
||||
<ul id="navigation">
|
||||
{%- for href, id, caption in [
|
||||
|
Loading…
x
Reference in New Issue
Block a user