Add 'tailbone' to global template context, update 'better' template footer
This commit is contained in:
parent
459637cddb
commit
fca95ae8c0
|
@ -34,6 +34,7 @@ from rattail.db.auth import has_permission
|
||||||
from pyramid import threadlocal
|
from pyramid import threadlocal
|
||||||
from pyramid.security import authenticated_userid
|
from pyramid.security import authenticated_userid
|
||||||
|
|
||||||
|
import tailbone
|
||||||
from tailbone import helpers
|
from tailbone import helpers
|
||||||
from tailbone.db import Session
|
from tailbone.db import Session
|
||||||
|
|
||||||
|
@ -78,6 +79,7 @@ def before_render(event):
|
||||||
renderer_globals['h'] = helpers
|
renderer_globals['h'] = helpers
|
||||||
renderer_globals['url'] = request.route_url
|
renderer_globals['url'] = request.route_url
|
||||||
renderer_globals['rattail'] = rattail
|
renderer_globals['rattail'] = rattail
|
||||||
|
renderer_globals['tailbone'] = tailbone
|
||||||
|
|
||||||
|
|
||||||
def add_inbox_count(event):
|
def add_inbox_count(event):
|
||||||
|
|
|
@ -128,5 +128,5 @@
|
||||||
<%def name="header_logo()"></%def>
|
<%def name="header_logo()"></%def>
|
||||||
|
|
||||||
<%def name="footer()">
|
<%def name="footer()">
|
||||||
powered by ${h.link_to("Rattail {}".format(rattail.__version__), 'https://rattailproject.org/', target='_blank')}
|
powered by ${h.link_to("Rattail {} / Tailbone {}".format(rattail.__version__, tailbone.__version__), 'https://rattailproject.org/', target='_blank')}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Reference in a new issue