mirror of https://github.com/portainer/portainer
parent
a7e92093c2
commit
7b7bb46844
@ -1,20 +1,22 @@
|
||||
<script src="/lib/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<h2>Build image:</h2>
|
||||
|
||||
<div class="detail">
|
||||
<div id="response" class="alert alert-{{ alertClass }}">
|
||||
<div id="build-modal" class="modal hide fade">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3>Build Image</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div>
|
||||
{{ response }}
|
||||
</div>
|
||||
|
||||
<div id="editor">
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
ace.config.set('basePath', '/lib/ace-builds/src-noconflict/');
|
||||
|
||||
var editor = ace.edit("editor");
|
||||
editor.setTheme("ace/theme/clouds");
|
||||
editor.getSession().setMode("ace/mode/batchfile");
|
||||
</script>
|
||||
<div id="editor"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="" class="btn btn-primary" ng-click="build()">Build</a>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var editor = ace.edit("editor");
|
||||
|
||||
editor.setValue('');
|
||||
editor.setTheme("ace/theme/clouds");
|
||||
editor.getSession().setMode("ace/mode/batchfile");
|
||||
</script>
|
||||
|
Loading…
Reference in new issue