| OLD | NEW |
| 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="/css/" type="text/css" media="screen"> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <template id=tryTemplate> | 9 <template id=tryTemplate> |
| 10 <div class=tries data-try=""> | 10 <div class=tries data-try=""> |
| 11 <img width=64 height=64 src=""> | 11 <img width=64 height=64 src=""> |
| 12 </div> | 12 </div> |
| 13 </template> | 13 </template> |
| 14 {{template "titlebar.html"}} | 14 {{template "titlebar.html"}} |
| 15 {{if .Name}} | 15 {{if .Name}} |
| 16 {{template "content.html" .}} | 16 {{template "content.html" .}} |
| 17 | 17 |
| 18 <section id=tryHistory> | 18 <section id=tryHistory> |
| 19 </section> | 19 </section> |
| 20 | 20 |
| 21 <script type="text/javascript" charset="utf-8"> | 21 <script type="text/javascript" charset="utf-8"> |
| 22 var history = {{.Tries}}; | 22 var history = {{.Tries}}; |
| 23 </script> | 23 </script> |
| 24 <script type='text/javascript' charset='utf-8'> | 24 <script type='text/javascript' charset='utf-8'> |
| 25 // Set the workspace name so run.js also updates the history. | 25 // Set the workspace name so run.js also updates the history. |
| 26 var workspaceName = "{{.Name}}"; | 26 var workspaceName = "{{.Name}}"; |
| 27 </script> | 27 </script> |
| 28 <script src="/js/" type="text/javascript" charset="utf-8"></script> | 28 <script src="/js/webtry.js" type="text/javascript" charset="utf-8"></script> |
| 29 {{else}} | 29 {{else}} |
| 30 <section id=content> | 30 <section id=content> |
| 31 <h1>Create</h1> | 31 <h1>Create</h1> |
| 32 Create a new workspace: | 32 Create a new workspace: |
| 33 <form action="." method="POST" accept-charset="utf-8"> | 33 <form action="." method="POST" accept-charset="utf-8"> |
| 34 <p><input type="submit" value="Create"></p> | 34 <p><input type="submit" value="Create"></p> |
| 35 </form> | 35 </form> |
| 36 </section> | 36 </section> |
| 37 {{end}} | 37 {{end}} |
| 38 </body> | 38 </body> |
| 39 </html> | 39 </html> |
| OLD | NEW |