mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
Update nav header for new docs location
This commit is contained in:
parent
f4ad355a0e
commit
2d3954a946
7 changed files with 41 additions and 126 deletions
|
@ -34,7 +34,7 @@ body {
|
||||||
.deluge-nav .deluge-nav-logo a {
|
.deluge-nav .deluge-nav-logo a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #DBE1E8;
|
color: #DBE1E8;
|
||||||
font-size: 1.7rem;
|
font-size: 1.25rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
<div class="deluge-nav">
|
<div class="deluge-nav">
|
||||||
<div class="deluge-nav-logo">
|
<div class="deluge-nav-logo">
|
||||||
<a href="https://dev.deluge-torrent.org/">
|
<a href="https://dev.deluge-torrent.org/">
|
||||||
<img src="https://deluge-torrent.org/images/deluge_logo.png" alt="" />Deluge
|
<img
|
||||||
|
src="https://deluge-torrent.org/images/deluge_logo.png"
|
||||||
|
alt=""
|
||||||
|
/>Deluge
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -13,32 +16,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul id="deluge-nav-lists">
|
<ul id="deluge-nav-lists">
|
||||||
<li class="close"><span onclick="hide()">×</span></li>
|
<li class="close"><span onclick="hide_nav_menu()">×</span></li>
|
||||||
<li>
|
<li><a href="https://deluge-torrent.org/download">Download</a></li>
|
||||||
<a href="https://dev.deluge-torrent.org/wiki/Download">Download</a>
|
<li><a href="https://deluge-torrent.org/plugins">Plugins</a></li>
|
||||||
</li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Plugins">Plugins</a></li>
|
|
||||||
<li><a href="https://forum.deluge-torrent.org/">Forum</a></li>
|
<li><a href="https://forum.deluge-torrent.org/">Forum</a></li>
|
||||||
<li>
|
<li><a href="https://deluge-torrent.org/userguide">Support</a></li>
|
||||||
<a href="https://dev.deluge-torrent.org/wiki/UserGuide">Support</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/roadmap">Bugs</a></li>
|
<li><a href="https://dev.deluge-torrent.org/roadmap">Bugs</a></li>
|
||||||
<li>
|
<li><a href="https://deluge-torrent.org/development">Development</a></li>
|
||||||
<a href="https://dev.deluge-torrent.org/wiki/Development"
|
|
||||||
>Development</a
|
|
||||||
>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script src="js/deluge_nav.js" defer></script>
|
||||||
const navList = document.getElementById("deluge-nav-lists");
|
|
||||||
function show() {
|
|
||||||
navList.classList.add("menus-show");
|
|
||||||
}
|
|
||||||
|
|
||||||
function hide() {
|
|
||||||
navList.classList.remove("menus-show");
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
<div class="deluge-nav">
|
|
||||||
<div class="deluge-nav-logo">
|
|
||||||
<a href="https://dev.deluge-torrent.org/">
|
|
||||||
<img src="./images/deluge_logo.png" alt="" />Deluge
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="deluge-navbar">
|
|
||||||
<div class="icon-bar" onclick="show()">
|
|
||||||
<i></i>
|
|
||||||
<i></i>
|
|
||||||
<i></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ul id="deluge-nav-lists">
|
|
||||||
<li class="close"><span onclick="hide()">×</span></li>
|
|
||||||
<li>
|
|
||||||
<a href="https://dev.deluge-torrent.org/wiki/Download">Download</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Plugins">Plugins</a></li>
|
|
||||||
<li><a href="https://forum.deluge-torrent.org/">Forum</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="https://dev.deluge-torrent.org/wiki/UserGuide">Support</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/roadmap">Bugs</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="https://dev.deluge-torrent.org/wiki/Development"
|
|
||||||
>Development</a
|
|
||||||
>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
const navList = document.getElementById("deluge-nav-lists");
|
|
||||||
function show() {
|
|
||||||
navList.classList.add("menus-show");
|
|
||||||
}
|
|
||||||
|
|
||||||
function hide() {
|
|
||||||
navList.classList.remove("menus-show");
|
|
||||||
}
|
|
||||||
</script>
|
|
|
@ -1,35 +0,0 @@
|
||||||
<script type="text/javascript" src="https://code.jquery.com/jquery-1.7.min.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function(){
|
|
||||||
if ( location.hostname.match('forum.deluge-torrent.org') )
|
|
||||||
{
|
|
||||||
$('ul#deluge-navbar li a[href="https://forum.deluge-torrent.org/"]').attr('class', 'currenttab');
|
|
||||||
}
|
|
||||||
else if ( location.hostname.match('git.deluge-torrent.org') )
|
|
||||||
{
|
|
||||||
$('ul#deluge-navbar li a[href$="Development"]').attr('class', 'currenttab');
|
|
||||||
}
|
|
||||||
else if ( location.hostname.match('dev.deluge-torrent.org') )
|
|
||||||
{
|
|
||||||
var path = location.pathname.split("/");
|
|
||||||
selected_tab = path[1].match('wiki') ? path[2] : 'roadmap';
|
|
||||||
$('ul#deluge-navbar li a[href$="' + selected_tab + '"]').attr('class', 'currenttab');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div id="deluge-header">
|
|
||||||
<div id="deluge-header-inner">
|
|
||||||
<div id="delugelogo">
|
|
||||||
<h1 id="delugetext"><a href="https://dev.deluge-torrent.org/">Deluge</a></h1>
|
|
||||||
</div>
|
|
||||||
<ul id="deluge-navbar">
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Download">Download</a></li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Plugins">Plugins</a></li>
|
|
||||||
<li><a href="https://forum.deluge-torrent.org/">Forum</a></li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/UserGuide">Support</a></li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/roadmap">Bugs</a></li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Development">Development</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
8
deluge-torrent.org/htdocs/js/deluge_nav.js
Normal file
8
deluge-torrent.org/htdocs/js/deluge_nav.js
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
const navList = document.getElementById("deluge-nav-lists");
|
||||||
|
function show_nav_menu() {
|
||||||
|
navList.classList.add("menus-show");
|
||||||
|
}
|
||||||
|
|
||||||
|
function hide_nav_menu() {
|
||||||
|
navList.classList.remove("menus-show");
|
||||||
|
}
|
|
@ -1,25 +1,25 @@
|
||||||
<div class="deluge-nav">
|
<div class="deluge-nav">
|
||||||
<div class="deluge-nav-logo">
|
<div class="deluge-nav-logo">
|
||||||
<a href="https://deluge-torrent.org/">
|
<a href="https://deluge-torrent.org/">
|
||||||
<img src="{T_THEME_PATH}/images/deluge_logo.png" alt="">Deluge
|
<img src="{T_THEME_PATH}/images/deluge_logo.png" alt="" />Deluge
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="deluge-navbar">
|
||||||
|
<div class="icon-bar" onclick="show_nav_menu()">
|
||||||
|
<i></i>
|
||||||
|
<i></i>
|
||||||
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="deluge-navbar">
|
<ul id="deluge-nav-lists">
|
||||||
<div class="icon-bar" onclick="show_nav_menu()">
|
<li class="close"><span onclick="hide_nav_menu()">×</span></li>
|
||||||
<i></i>
|
<li><a href="https://deluge-torrent.org/download">Download</a></li>
|
||||||
<i></i>
|
<li><a href="https://deluge-torrent.org/plugins">Plugins</a></li>
|
||||||
<i></i>
|
<li><a href="https://forum.deluge-torrent.org/">Forum</a></li>
|
||||||
</div>
|
<li><a href="https://deluge-torrent.org/userguide">Support</a></li>
|
||||||
|
<li><a href="https://dev.deluge-torrent.org/roadmap">Bugs</a></li>
|
||||||
<ul id="deluge-nav-lists">
|
<li><a href="https://deluge-torrent.org/development">Development</a></li>
|
||||||
<li class="close"><span onclick="hide_nav_menu()">×</span></li>
|
</ul>
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Download">Download</a></li>
|
</div>
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Plugins">Plugins</a></li>
|
|
||||||
<li><a href="https://forum.deluge-torrent.org/">Forum</a></li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/UserGuide">Support</a></li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/roadmap">Bugs</a></li>
|
|
||||||
<li><a href="https://dev.deluge-torrent.org/wiki/Development">Development</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -33,7 +33,7 @@ body {
|
||||||
.deluge-nav .deluge-nav-logo a {
|
.deluge-nav .deluge-nav-logo a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #DBE1E8;
|
color: #DBE1E8;
|
||||||
font-size: 1.7rem;
|
font-size: 1.25rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue