comparison getan/template.py @ 372:a805aaed97dd

Add current date to getan template context
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 10 Mar 2014 09:23:08 +0100
parents f4dcfbede99b
children 9a0dba03d16c
comparison
equal deleted inserted replaced
371:8b44243b799a 372:a805aaed97dd
120 context["week"] = week 120 context["week"] = week
121 context["current_week"] = c_week 121 context["current_week"] = c_week
122 context["current_year"] = c_year 122 context["current_year"] = c_year
123 context["unix_week"] = u_week 123 context["unix_week"] = u_week
124 context["total_time"] = total_time(projects) 124 context["total_time"] = total_time(projects)
125 context["today"] = date.today()
125 return template.render(context) 126 return template.render(context)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)