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 {{template "headercommon.html" .}} | 5 {{template "headercommon.html" .}} |
6 <link rel='import' type='text/html' href='/res/imp/zoom.html'> | 6 <link rel='import' type='text/html' href='/res/imp/zoom.html'> |
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" src=''> |
12 </div> | 12 </div> |
13 </template> | 13 </template> |
14 {{template "titlebar.html" .}} | 14 <div id="wrapper"> |
15 {{if .Name}} | 15 {{template "titlebar.html" .}} |
16 {{template "content.html" .}} | 16 {{if .Name}} |
| 17 <div id="lower-wrapper"> |
| 18 {{template "sidebar.html" .}} |
| 19 {{template "content.html" .}} |
| 20 </div> |
| 21 <section id="tryHistory"> |
| 22 </section> |
17 | 23 |
18 <section id=tryHistory> | 24 <script type='text/javascript'> |
19 </section> | 25 var history_ = {{.Tries}}; |
20 | 26 </script> |
21 <script type='text/javascript'> | 27 <script type='text/javascript'> |
22 var history_ = {{.Tries}}; | 28 // Set the workspace name so run.js also updates the history. |
23 console.log(history_); | 29 var workspaceName = '{{.Name}}'; |
24 </script> | 30 </script> |
25 <script type='text/javascript'> | 31 {{else}} |
26 // Set the workspace name so run.js also updates the history. | 32 <section id="content"> |
27 var workspaceName = '{{.Name}}'; | 33 <h1>Create</h1> |
28 </script> | 34 <form action="" method="POST"> |
29 {{else}} | 35 <input class='btn btn-primary btn-lg' type='submit' value='Create a new
workspace'> |
30 <section id=content> | 36 </form> |
31 <h1>Create</h1> | 37 </section> |
32 Create a new workspace: | 38 {{end}} |
33 <form action='.' method='POST'> | 39 {{template "footercommon.html" .}} |
34 <p><input type='submit' value='Create'></p> | 40 </div> |
35 </form> | |
36 </section> | |
37 {{end}} | |
38 {{template "footercommon.html" .}} | |
39 </body> | 41 </body> |
40 </html> | 42 </html> |
OLD | NEW |