| 1 |
{# ru-fu: copied from Furo, with modifications as stated below. Modifications are marked 'mod:'. #} |
| 2 |
|
| 3 |
<div class="related-pages"> |
| 4 |
{# mod: Per-page navigation #} |
| 5 |
{% if meta %} |
| 6 |
{% if 'sequential_nav' in meta %} |
| 7 |
{% set sequential_nav = meta.sequential_nav %} |
| 8 |
{% endif %} |
| 9 |
{% endif %} |
| 10 |
{# mod: Conditional wrappers to control page navigation buttons #} |
| 11 |
{% if sequential_nav != "none" -%} |
| 12 |
{% if next and (sequential_nav == "next" or sequential_nav == "both") -%} |
| 13 |
<a class="next-page" href="{{ next.link }}"> |
| 14 |
<div class="page-info"> |
| 15 |
<div class="context"> |
| 16 |
<span>{{ _("Next") }}</span> |
| 17 |
</div> |
| 18 |
<div class="title">{{ next.title }}</div> |
| 19 |
</div> |
| 20 |
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg> |
| 21 |
</a> |
| 22 |
{%- endif %} |
| 23 |
{% if prev and (sequential_nav == "prev" or sequential_nav == "both") -%} |
| 24 |
<a class="prev-page" href="{{ prev.link }}"> |
| 25 |
<svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg> |
| 26 |
<div class="page-info"> |
| 27 |
<div class="context"> |
| 28 |
<span>{{ _("Previous") }}</span> |
| 29 |
</div> |
| 30 |
{% if prev.link == pathto(root_doc) %} |
| 31 |
<div class="title">{{ _("Home") }}</div> |
| 32 |
{% else %} |
| 33 |
<div class="title">{{ prev.title }}</div> |
| 34 |
{% endif %} |
| 35 |
</div> |
| 36 |
</a> |
| 37 |
{%- endif %} |
| 38 |
{%- endif %} |
| 39 |
</div> |
| 40 |
<div class="bottom-of-page"> |
| 41 |
<div class="left-details"> |
| 42 |
{%- if show_copyright %} |
| 43 |
<div class="copyright"> |
| 44 |
{%- if hasdoc('copyright') %} |
| 45 |
{% trans path=pathto('copyright'), copyright=copyright|e -%} |
| 46 |
<a href="{{ path }}">Copyright</a> © {{ copyright }} |
| 47 |
{%- endtrans %} |
| 48 |
{%- else %} |
| 49 |
{% trans copyright=copyright|e -%} |
| 50 |
Copyright © {{ copyright }} |
| 51 |
{%- endtrans %} |
| 52 |
{%- endif %} |
| 53 |
</div> |
| 54 |
{%- endif %} |
| 55 |
|
| 56 |
{# mod: removed "Made with" #} |
| 57 |
|
| 58 |
{%- if last_updated -%} |
| 59 |
<div class="last-updated"> |
| 60 |
{% trans last_updated=last_updated|e -%} |
| 61 |
Last updated on {{ last_updated }} |
| 62 |
{%- endtrans -%} |
| 63 |
</div> |
| 64 |
{%- endif %} |
| 65 |
|
| 66 |
{%- if show_source and has_source and sourcename %} |
| 67 |
<div class="show-source"> |
| 68 |
<a class="muted-link" href="{{ pathto('_sources/' + sourcename, true)|e }}" |
| 69 |
rel="nofollow">Show source</a> |
| 70 |
</div> |
| 71 |
{%- endif %} |
| 72 |
</div> |
| 73 |
<div class="right-details"> |
| 74 |
|
| 75 |
{# mod: replaced RTD icons with our links #} |
| 76 |
|
| 77 |
{% if discourse %} |
| 78 |
<div class="ask-discourse"> |
| 79 |
<a class="muted-link" href="{{ discourse }}">Ask a question on Discourse</a> |
| 80 |
</div> |
| 81 |
{% endif %} |
| 82 |
|
| 83 |
{% if mattermost %} |
| 84 |
<div class="ask-mattermost"> |
| 85 |
<a class="muted-link" href="{{ mattermost }}">Ask a question on Mattermost</a> |
| 86 |
</div> |
| 87 |
{% endif %} |
| 88 |
|
| 89 |
{% if github_url and github_version and github_folder %} |
| 90 |
|
| 91 |
{% if github_issues %} |
| 92 |
<div class="issue-github"> |
| 93 |
<a class="muted-link" href="https://bugs.launchpad.net/netplan/+filebug">Open a Launchpad issue for this documentation</a> |
| 94 |
</div> |
| 95 |
{% endif %} |
| 96 |
|
| 97 |
<div class="edit-github"> |
| 98 |
<a class="muted-link" href="{{ github_url }}/edit/{{ github_version }}{{ github_folder }}{{ pagename }}{{ page_source_suffix }}">Edit this page on GitHub</a> |
| 99 |
</div> |
| 100 |
{% endif %} |
| 101 |
|
| 102 |
|
| 103 |
</div> |
| 104 |
</div> |
| 105 |
</div> |