Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
118 lines
1.7 KiB
Go Template
118 lines
1.7 KiB
Go Template
{{ define "revisions.gohtml" }}
|
|
<!DOCTYPE html>
|
|
<html lang="{{ .Locale }}">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{ T "history.title" }} · {{ .WikiName }}</title>
|
|
|
|
<link
|
|
rel="stylesheet"
|
|
href="/static/css/main.css"
|
|
>
|
|
|
|
<link
|
|
rel="stylesheet"
|
|
href="/static/css/revisions.css"
|
|
>
|
|
|
|
|
|
<link rel="stylesheet" href="/static/css/theme/base.css">
|
|
<link rel="stylesheet" href="{{ .ThemeCSS }}">
|
|
</head>
|
|
|
|
<body class="mode-revisions">
|
|
|
|
<header class="topbar">
|
|
|
|
<div class="brand">
|
|
<a href="/">{{ .WikiName }}</a>
|
|
</div>
|
|
|
|
<nav>
|
|
|
|
<a href="/">{{ T "config.home" }}</a>
|
|
|
|
</nav>
|
|
|
|
{{ template "auth-menu" . }}</header>
|
|
|
|
<main class="container">
|
|
|
|
<section class="card">
|
|
|
|
<h1>{{ T "history.title" }}</h1>
|
|
|
|
<p>
|
|
Object UUID:
|
|
<code>{{ .ObjectUUID }}</code>
|
|
</p>
|
|
|
|
</section>
|
|
|
|
<section class="revision-timeline">
|
|
|
|
{{ range $i, $r := .Revisions }}
|
|
|
|
<article class="revision-card">
|
|
|
|
<div class="revision-header">
|
|
|
|
<div>
|
|
<code>{{ $r.UUID }}</code>
|
|
</div>
|
|
|
|
<div>
|
|
{{ $r.CreatedAt }}
|
|
· {{ $r.Language }}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="revision-message">
|
|
{{ $r.Message }}
|
|
</div>
|
|
|
|
<div class="revision-actions">
|
|
|
|
<a
|
|
class="button"
|
|
href="/r/view/{{ $r.UUID }}"
|
|
>
|
|
{{ T "history.view" }}
|
|
</a>
|
|
|
|
{{ if lt (add $i 1) (len $.Revisions) }}
|
|
|
|
{{ $prev := index $.Revisions (add $i 1) }}
|
|
|
|
<a
|
|
class="button"
|
|
href="/r/diff/{{ $prev.UUID }}/{{ $r.UUID }}"
|
|
>
|
|
{{ T "history.diff_previous" }}
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
<nav class="revision-pagination" aria-label="{{ T "history.title" }}">
|
|
{{ if .HasPrevious }}<a href="{{ .NewestURL }}">{{ T "history.newest" }}</a>{{ end }}
|
|
{{ if .NextURL }}<a href="{{ .NextURL }}" rel="next">{{ T "history.older" }}</a>{{ end }}
|
|
</nav>
|
|
</main>
|
|
|
|
</body>
|
|
</html>
|
|
{{ end }}
|