Provide today's date as context for profile view
This commit is contained in:
parent
b0af78f3b2
commit
a49d107a82
|
@ -31,6 +31,7 @@ import sqlalchemy as sa
|
|||
from sqlalchemy import orm
|
||||
|
||||
from rattail.db import model, api
|
||||
from rattail.time import localtime
|
||||
|
||||
import colander
|
||||
from pyramid.httpexceptions import HTTPFound, HTTPNotFound
|
||||
|
@ -246,6 +247,7 @@ class PeopleView(MasterView):
|
|||
'person': person,
|
||||
'instance': person,
|
||||
'instance_title': self.get_instance_title(person),
|
||||
'today': localtime(self.rattail_config).date(),
|
||||
'employee': employee,
|
||||
'employee_view_url': self.request.route_url('employees.view', uuid=employee.uuid) if employee else None,
|
||||
'employee_history': employee.get_current_history() if employee else None,
|
||||
|
|
Loading…
Reference in a new issue