Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: experimental/webtry/templates/workspace.html

Issue 244313007: Move to using HTML templates when filling out the workspace history. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'>

Powered by Google App Engine
This is Rietveld 408576698