wiki/templates/history.html
2020-05-07 14:15:36 +02:00

15 lines
481 B
HTML

{{ define "navbar" }}
<a href="/edit/{{ .Name }}" class="navbar-item">Edit</a>
{{ end }}
{{ define "content" }}
{{ range $index, $revision := .History }}
<section class="section">
<h2 class="title is-4">Revision {{ historyIndex $index $.History }}</h2>
<h3 class="subtitle is-6">{{ $revision.Summary }}</h3>
<div class="content monospace">{{ $revision.Page.Diff }}</div>
</section>
<hr/>
{{ end }}
{{ end }}