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

Unified Diff: templates/sitekey_frame.tmpl

Issue 29328600: Issue 3122 - Add sitekey frame files ready for sitekey testcases (Closed)
Patch Set: Attempt to make frame URL logic clearer Created Oct. 13, 2015, 11:28 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 | « templates/frame.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/sitekey_frame.tmpl
diff --git a/templates/sitekey_frame.tmpl b/templates/sitekey_frame.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..c136b2ad2086070e81ff33f6584859f3a870fa98
--- /dev/null
+++ b/templates/sitekey_frame.tmpl
@@ -0,0 +1,10 @@
+{% extends "frame.tmpl" %}
saroyanm 2015/10/13 12:24:44 "TemplateNotFound: frame.tmpl" maybe -> {% extends
kzar 2015/10/15 15:06:21 I'm not able to reproduce that problem, when exact
saroyanm 2015/10/15 15:38:16 Assigne this template to some page `template=sitek
kzar 2015/10/15 16:19:12 Ah right I see, well it's designed to be rendered
saroyanm 2015/10/15 16:23:23 But if you use -> {% extends "templates/frame" %}
kzar 2015/10/15 16:28:51 So this template is designed to be rendered by sit
+
+{% block body %}
+<script type="text/javascript">
+ function frame_url(parent_location)
+ {
+ return parent_location.hash.substring(1);
+ }
+</script>
+{% endblock %}
« no previous file with comments | « templates/frame.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld