|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
{{ $page := . }}
|
|
|
|
|
|
|
|
|
|
{{ $edit := $page.Param "paige.edit" | and ($page.Param "paige.page.hide_edit" | not) }}
|
|
|
|
|
{{ $filehistoryurl := $page.Param "paige.file_history_url" | and ($page.Param "paige.page.hide_history" | not) }}
|
|
|
|
|
{{ $first := templates.Exists "partials/paige/page-footer-first.html" }}
|
|
|
|
|
{{ $history := $page.Param "paige.history" | and ($page.Param "paige.page.hide_history" | not) }}
|
|
|
|
|
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
|
|
|
|
{{ $next := $page.NextInSection | and ($page.Param "paige.page.hide_next" | not) }}
|
|
|
|
|
{{ $prev := $page.PrevInSection | and ($page.Param "paige.page.hide_prev" | not) }}
|
|
|
|
@ -12,18 +12,18 @@
|
|
|
|
|
{{ $edit = printf $edit $page.File.Path }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if $filehistoryurl }}
|
|
|
|
|
{{ $filehistoryurl = printf $filehistoryurl $page.File.Path }}
|
|
|
|
|
{{ if $history }}
|
|
|
|
|
{{ $history = printf $history $page.File.Path }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if or $edit $filehistoryurl $first $last $next $prev }}
|
|
|
|
|
{{ if or $edit $history $first $last $next $prev }}
|
|
|
|
|
<footer class="mw-100" id="paige-page-footer">
|
|
|
|
|
{{ if $first }}
|
|
|
|
|
{{ partial "paige/page-footer-first.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if or $edit $filehistoryurl }}
|
|
|
|
|
{{ if or $edit $history }}
|
|
|
|
|
<div id="paige-file">
|
|
|
|
|
{{ if $edit }}
|
|
|
|
|
<div class="paige-row-narrow text-center text-secondary" id="paige-edit">
|
|
|
|
@ -31,9 +31,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if $filehistoryurl }}
|
|
|
|
|
{{ if $history }}
|
|
|
|
|
<div class="paige-row-narrow text-center text-secondary" id="paige-history">
|
|
|
|
|
<a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a>
|
|
|
|
|
<a class="link-secondary" href="{{ $history | safeURL }}">{{ i18n "paige_edit_history" }}</a>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
|
|
|
|