Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: functions/set_title.py

Issue 5994668214976512: Issue 662 - Job links shouldn't use anchors (Closed)
Patch Set: Updated patch by Wladimir Created March 20, 2015, 9:52 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | includes/jobs/generic-footer.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: functions/set_title.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/functions/set_title.py
@@ -0,0 +1,6 @@
+from jinja2 import contextfunction
+
+@contextfunction
+def set_title(context, value):
+ context.resolve("params")["title"] = value
+ return ""
« no previous file with comments | « no previous file | includes/jobs/generic-footer.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld