Move file links above sibling links

master
Will Faught 12 months ago
parent 82c67bba9a
commit 2ee8b33aff

@ -26,33 +26,33 @@
{{ partial "paige/page-footer-first.html" . }} {{ partial "paige/page-footer-first.html" . }}
{{ end }} {{ end }}
{{ if or $next $prev }} {{ if $file }}
<div class="mb-3" id="paige-prev-next"> <div class="mb-3" id="paige-file">
{{ with $prev }} {{ if $fileediturl }}
<p class="mb-0" id="paige-next"> <p class="mb-0" id="paige-file-edit">
<a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> &rsaquo; <a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a>
</p> </p>
{{ end }} {{ end }}
{{ with $next }} {{ if $filehistoryurl }}
<p class="mb-0" id="paige-prev"> <p class="mb-0" id="paige-file-history">
&lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> <a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a>
</p> </p>
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
{{ if $file }} {{ if or $next $prev }}
<div id="paige-file"> <div id="paige-prev-next">
{{ if $fileediturl }} {{ with $prev }}
<p class="mb-0" id="paige-file-edit"> <p class="mb-0" id="paige-next">
<a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a> <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> &rsaquo;
</p> </p>
{{ end }} {{ end }}
{{ if $filehistoryurl }} {{ with $next }}
<p class="mb-0" id="paige-file-history"> <p class="mb-0" id="paige-prev">
<a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a> &lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
</p> </p>
{{ end }} {{ end }}
</div> </div>

Loading…
Cancel
Save