| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>Workspace</title> |
| <meta charset='utf-8' /> |
| <link rel='stylesheet' href='/res/css/webtry.css' type='text/css' media='screen'> |
| <link rel="stylesheet" href="/res/css/cm/codemirror.css" type="text/css" media="screen"> |
| <link rel="stylesheet" href="/res/css/cm/ambiance.css" type="text/css" media="screen"> |
| </head> |
| <body> |
| <template id=tryTemplate> |
| <div class=tries data-try=""> |
| <img width=64 height=64 src=""> |
| </div> |
| </template> |
| {{template "titlebar.html" .}} |
| {{if .Name}} |
| {{template "content.html" .}} |
| |
| <section id=tryHistory> |
| </section> |
| |
| <script type="text/javascript" charset="utf-8"> |
| var history = {{.Tries}}; |
| </script> |
| <script type='text/javascript' charset='utf-8'> |
| // Set the workspace name so run.js also updates the history. |
| var workspaceName = "{{.Name}}"; |
| </script> |
| <script src="/res/js/webtry.js" type="text/javascript" charset="utf-8"></script> |
| {{else}} |
| <section id=content> |
| <h1>Create</h1> |
| Create a new workspace: |
| <form action="." method="POST" accept-charset="utf-8"> |
| <p><input type="submit" value="Create"></p> |
| </form> |
| </section> |
| {{end}} |
| </body> |
| </html> |