Send URL for viewing employee, along to profile page template

This commit is contained in:
Lance Edgar 2019-07-11 15:17:25 -05:00
parent 61df7745c6
commit dd773d4e5e

View file

@ -246,6 +246,7 @@ class PeopleView(MasterView):
'instance': person, 'instance': person,
'instance_title': self.get_instance_title(person), 'instance_title': self.get_instance_title(person),
'employee': employee, '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, 'employee_history': employee.get_current_history() if employee else None,
'employee_history_data': self.get_context_employee_history(employee), 'employee_history_data': self.get_context_employee_history(employee),
} }