39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
|
|
{{define "title"}}Historique: {{.Page.Title}} — Talas Wiki{{end}}
|
||
|
|
|
||
|
|
{{define "content"}}
|
||
|
|
<div class="breadcrumb">
|
||
|
|
<a href="/">/</a>
|
||
|
|
{{range breadcrumbs .Page.URLPath}}
|
||
|
|
/ <a href="/wiki/{{encodeURL .path}}">{{.name}}</a>
|
||
|
|
{{end}}
|
||
|
|
/ <span class="edit-marker">historique</span>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="page-header">
|
||
|
|
<h1>Historique: {{.Page.Title}}</h1>
|
||
|
|
<a href="/wiki/{{encodeURL .Page.URLPath}}" class="btn-edit">retour</a>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{{if .Diff}}
|
||
|
|
<div class="diff-view">
|
||
|
|
<h2>Diff: {{shortHash .Diff.Hash}}</h2>
|
||
|
|
<p class="diff-message">{{.Diff.Message}}</p>
|
||
|
|
<pre class="diff-content">{{colorDiff .Diff.Diff}}</pre>
|
||
|
|
</div>
|
||
|
|
{{end}}
|
||
|
|
|
||
|
|
{{if .Commits}}
|
||
|
|
<div class="history-list">
|
||
|
|
{{range .Commits}}
|
||
|
|
<div class="history-entry">
|
||
|
|
<a href="/history/{{encodeURL $.Page.URLPath}}?diff={{.Hash}}" class="history-hash">{{shortHash .Hash}}</a>
|
||
|
|
<span class="history-msg">{{.Message}}</span>
|
||
|
|
<span class="history-meta">{{.Author}} · {{formatDate .Date}}</span>
|
||
|
|
</div>
|
||
|
|
{{end}}
|
||
|
|
</div>
|
||
|
|
{{else}}
|
||
|
|
<p class="subtitle">Pas d'historique git disponible pour ce fichier.</p>
|
||
|
|
{{end}}
|
||
|
|
{{end}}
|