Add 'tailbone' to global template context, update 'better' template footer

This commit is contained in:
Lance Edgar 2016-10-07 19:33:41 -05:00
parent 459637cddb
commit fca95ae8c0
2 changed files with 3 additions and 1 deletions

View file

@ -34,6 +34,7 @@ from rattail.db.auth import has_permission
from pyramid import threadlocal
from pyramid.security import authenticated_userid
import tailbone
from tailbone import helpers
from tailbone.db import Session
@ -78,6 +79,7 @@ def before_render(event):
renderer_globals['h'] = helpers
renderer_globals['url'] = request.route_url
renderer_globals['rattail'] = rattail
renderer_globals['tailbone'] = tailbone
def add_inbox_count(event):

View file

@ -128,5 +128,5 @@
<%def name="header_logo()"></%def>
<%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>