-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[change] Updated version switcher and offline docs URLs
- Fixed repeated versions in version map on consecutive builds - Fixed double logo on narrow screen --------- Co-authored-by: Federico Capoano <[email protected]>
- Loading branch information
1 parent
4616370
commit 519da77
Showing
6 changed files
with
115 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="offline-docs"> | ||
<div class="heading"> | ||
<h6>OFFLINE DOCS</h6> | ||
</div> | ||
<p class="urls"> | ||
<a href="{{ docs_root }}/{{ current_ow_version }}/OpenWISP-{{ current_ow_version }}.pdf" target="_blank"> | ||
PDF</a> | ||
| | ||
<a href="{{ docs_root }}/{{ current_ow_version }}/OpenWISP-{{ current_ow_version }}.epub" target="_blank"> | ||
ePUB</a> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="doc-versions"> | ||
<label>Version</label> | ||
<div class="dropdown" x-data="{ showVersionSwitcher: false }"> | ||
<button type="button" class="dropbtn {% if not ow_versions|length > 1 %} disabled {% endif %}" | ||
{% if ow_versions|length > 1 %} @click="showVersionSwitcher = !showVersionSwitcher" :class="{'active': showVersionSwitcher} | ||
{% endif %} | ||
">{{ current_ow_version }}{% if ow_versions|length > 1 %}<svg fill="currentColor" height="18px" | ||
stroke="none" viewBox="0 0 24 24" width="18px" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path> | ||
</svg>{% endif %} | ||
</button> | ||
<div x-show="showVersionSwitcher" class="dropdown-content" :class="{'hidden': !showVersionSwitcher}" | ||
@click.away="showVersionSwitcher = false" class="dropdown-content"> | ||
{% for ow_version in ow_versions %} | ||
{% if ow_version != current_ow_version %} | ||
<a href="{{ docs_root }}/{{ ow_version }}/{{ pagename }}.html">{{ ow_version }}</a> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters