2021-10-20 15:58:14 +00:00
|
|
|
{{define "components/result"}}
|
|
|
|
<div class="modal" id="result_view">
|
|
|
|
<div class="modal-background"></div>
|
|
|
|
<div class="modal-card">
|
|
|
|
<header class="modal-card-head">
|
2021-10-21 13:49:15 +00:00
|
|
|
<p class="modal-card-title">{{.File.Name}}</p>
|
2021-10-20 15:58:14 +00:00
|
|
|
<button class="delete" aria-label="close" onclick="ResultViewTog()"></button>
|
|
|
|
</header>
|
|
|
|
<section class="modal-card-body">
|
|
|
|
<p class="title">{{.File.Action}}</p>
|
|
|
|
<p class="subtitle">{{.File.Path}}</p>
|
|
|
|
<div id="result_editor"></div>
|
|
|
|
</section>
|
|
|
|
<footer class="modal-card-foot">
|
|
|
|
<div class="level">
|
|
|
|
<div class="level-left"></div>
|
|
|
|
<div class="level-left">
|
|
|
|
<button class="button" onclick="ResultViewTog()">OK</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function ResultViewTog(){
|
|
|
|
let el = document.getElementById('result_view')
|
|
|
|
el.classList.toggle('is-active')
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{{end}}
|