wiki/templates/history.html

14 lines
480 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 }}