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

Side by Side Diff: experimental/webtry/templates/workspace.html

Issue 261693003: Use CodeMirror for WebTry snippets. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: design.md notes Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/webtry/templates/template.cpp ('k') | experimental/webtry/webtry.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Workspace</title> 4 <title>Workspace</title>
5 <meta charset='utf-8' /> 5 <meta charset='utf-8' />
6 <link rel="stylesheet" href="/css/" type="text/css" media="screen"> 6 <link rel='stylesheet' href='/res/css/webtry.css' type='text/css' media='scr een'>
7 <link rel="stylesheet" href="/res/css/cm/codemirror.css" type="text/css" med ia="screen">
8 <link rel="stylesheet" href="/res/css/cm/ambiance.css" type="text/css" media ="screen">
7 </head> 9 </head>
8 <body> 10 <body>
9 <template id=tryTemplate> 11 <template id=tryTemplate>
10 <div class=tries data-try=""> 12 <div class=tries data-try="">
11 <img width=64 height=64 src=""> 13 <img width=64 height=64 src="">
12 </div> 14 </div>
13 </template> 15 </template>
14 {{template "titlebar.html" .}} 16 {{template "titlebar.html" .}}
15 {{if .Name}} 17 {{if .Name}}
16 {{template "content.html" .}} 18 {{template "content.html" .}}
17 19
18 <section id=tryHistory> 20 <section id=tryHistory>
19 </section> 21 </section>
20 22
21 <script type="text/javascript" charset="utf-8"> 23 <script type="text/javascript" charset="utf-8">
22 var history = {{.Tries}}; 24 var history = {{.Tries}};
23 </script> 25 </script>
24 <script type='text/javascript' charset='utf-8'> 26 <script type='text/javascript' charset='utf-8'>
25 // Set the workspace name so run.js also updates the history. 27 // Set the workspace name so run.js also updates the history.
26 var workspaceName = "{{.Name}}"; 28 var workspaceName = "{{.Name}}";
27 </script> 29 </script>
28 <script src="/js/webtry.js" type="text/javascript" charset="utf-8"></script> 30 <script src="/res/js/webtry.js" type="text/javascript" charset="utf-8"></scrip t>
29 {{else}} 31 {{else}}
30 <section id=content> 32 <section id=content>
31 <h1>Create</h1> 33 <h1>Create</h1>
32 Create a new workspace: 34 Create a new workspace:
33 <form action="." method="POST" accept-charset="utf-8"> 35 <form action="." method="POST" accept-charset="utf-8">
34 <p><input type="submit" value="Create"></p> 36 <p><input type="submit" value="Create"></p>
35 </form> 37 </form>
36 </section> 38 </section>
37 {{end}} 39 {{end}}
38 </body> 40 </body>
39 </html> 41 </html>
OLDNEW
« no previous file with comments | « experimental/webtry/templates/template.cpp ('k') | experimental/webtry/webtry.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698