www/templates/solve.html
{{ define "title" }}Shikaku Solution{{ end }}
{{ define "head" }}
<link rel="stylesheet" href="/public/solve.css"/>
{{ end }}
{{ define "body" }}
{{ if .Err }}
<h2>Something went wrong...</h2>
<p>{{.Err}}</p>
<a href="#" onclick="window.history.back()">< Back</a>
{{ else }}
<h2>Solution</h2>
<p>Computed in {{ printf "%.2f" .Duration }} ms.</p>
<div class="{{ if .Small }}solve_shrink{{end}} solve_wrapper">
<table class="solve_table">
{{ .Soln }}
</table>
</div>
{{ end }}
{{ end }}