nirvash/templates/build_run.html

14 lines
No EOL
396 B
HTML

{{ $buildOpts := .PostForm }}
{{ $status := ((.Context).Value "adapter").Build $buildOpts }}
{{ template "header" . }}
{{ if ne ($status).Success true }}
<h2>Build Error</h2>
<span class="adapter-error"><pre>{{($status).Message}}</pre></span>
{{ else }}
<h2>Build Successful</h2>
<span class="adapter-success"><pre>{{($status).Message}}</pre></span>
{{ end }}
{{ template "footer" . }}