Index: experimental/webtry/templates/workspace.html |
diff --git a/experimental/webtry/templates/workspace.html b/experimental/webtry/templates/workspace.html |
index 4dab65b5c508c73e994907ad89983e089ce27831..3a461d61c5b1092f71bd895fea0ec440a94a2c9d 100644 |
--- a/experimental/webtry/templates/workspace.html |
+++ b/experimental/webtry/templates/workspace.html |
@@ -6,6 +6,14 @@ |
<link rel="stylesheet" href="/css/" type="text/css" media="screen"> |
</head> |
<body> |
+ |
+ <template id=tryTemplate> |
+ <div class=tries> |
+ <a href=""> |
+ <img width=64 height=64 src=""> |
+ </a> |
+ </div> |
+ </template> |
{{template "titlebar.html"}} |
<section id=content> |
{{if .Name}} |
@@ -23,14 +31,10 @@ void draw(SkCanvas* canvas) { |
<pre><code id='output'></code></pre> |
</section> |
+ <script type="text/javascript" charset="utf-8"> |
+ var history = {{.Tries}}; |
+ </script> |
<section id=tryHistory> |
- {{range .Tries}} |
- <div class=tries> |
- <a href="/c/{{.Hash}}"> |
- <img width=64 height=64 src="/i/{{.Hash}}.png"> |
- </a> |
- </div> |
- {{end}} |
</section> |
<script type='text/javascript' charset='utf-8'> |