-
Notifications
You must be signed in to change notification settings - Fork 311
/
Copy pathscriptViewSourcePage.html
54 lines (54 loc) · 2.17 KB
/
scriptViewSourcePage.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<title>{{title}}</title>
{{> includes/head.html }}
<style type="text/css">
#editor {
position: relative;
min-height: 200px;
height: -moz-calc(100vh - {{#newScript}}190{{/newScript}}{{^newScript}}303{{/newScript}}px);
height: -ms-calc(100vh - {{#newScript}}190{{/newScript}}{{^newScript}}303{{/newScript}}px);
height: -o-calc(100vh - {{#newScript}}190{{/newScript}}{{^newScript}}303{{/newScript}}px);
height: -webkit-calc(100vh - {{#newScript}}190{{/newScript}}{{^newScript}}303{{/newScript}}px);
height: calc(100vh - {{#newScript}}190{{/newScript}}{{^newScript}}303{{/newScript}}px);
}
.path-divider {
margin: 0 .25em;
color: #666;
}
</style>
</head>
<body>
{{> includes/header.html }}
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
{{^newScript}}{{> includes/scriptPageHeader.html }}{{/newScript}}
<pre id="editor">{{source}}</pre>
{{^readOnly}}
<form action="{{#isLib}}/user/add/lib/new{{/isLib}}{{^isLib}}/user/add/scripts/new{{/isLib}}" id="code_form" method="post">
<input type="hidden" id="source" name="source" value="" />
<input type="hidden" name="url" value="{{{url}}}" />
{{^owner}}<input type="hidden" name="original" value="{{original}}" />{{/owner}}
<div class="pull-left">
{{#isLib}}
{{#newScript}}
<strong>Library Name:</strong> <input type="text" name="script_name" value="" required>
{{/newScript}}
{{^newScript}}
<input type="hidden" name="script_name" value="{{scriptName}}" />
{{/newScript}}
{{/isLib}}
</div>
<button class="btn btn-success pull-right" type="submit" id="submit_code">{{#owner}}<i class="fa fa-fw fa-save"></i>{{/owner}}{{^owner}}<i class="fa fa-fw fa-code-fork"></i>{{/owner}} Submit Code{{^owner}} as Fork{{/owner}}</button>
</form>
{{/readOnly}}
</div>
</div>
</div>
{{> includes/footer.html }}
{{> includes/scripts/lazyIconScript.html }}
{{> includes/scripts/scriptEditor.html }}
</body>
</html>