Update forgejo/gitea/templates/base/head_navbar.tmpl
This commit is contained in:
parent
6d0e2d841a
commit
da8860e9a0
1 changed files with 25 additions and 22 deletions
|
@ -1,30 +1,37 @@
|
||||||
<header data-astro-cid-eiyd7voq="">
|
<header data-astro-cid-eiyd7voq="">
|
||||||
<div class="header-content" data-astro-cid-eiyd7voq="">
|
<div class="header-content">
|
||||||
<div class="header-row-top" data-astro-cid-eiyd7voq="">
|
<div class="header-row-top">
|
||||||
<div data-astro-cid-eiyd7voq="">
|
<div>
|
||||||
<a href="/" data-astro-cid-eiyd7voq="">
|
<a href="/">
|
||||||
<div class="sudovanilla-logo" data-astro-cid-4zunyjcd="">
|
<div class="sudovanilla-logo">
|
||||||
<img width="30px" alt="SudoVanilla Logo" src="https://md.sudovanilla.org/images/SudoVanilla-Full-Logo.svg" data-astro-cid-4zunyjcd="" />
|
<img width="30px" alt="SudoVanilla Logo" src="https://md.sudovanilla.org/images/sv-logo-4.png" />
|
||||||
<p style="color: white" data-astro-cid-4zunyjcd=""><span data-astro-cid-4zunyjcd="">Sudo</span> <span style="font-family: RedHatDisplay; font-weight: bold;" data-astro-cid-4zunyjcd="">Vanilla</span></p>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div data-astro-cid-eiyd7voq="">
|
<div>
|
||||||
<a class="header-link-item" href="/blog/" data-astro-cid-eiyd7voq="">Blog</a>
|
<a class="header-link-item" href="https://sudovanilla.org/blog/">Blog</a>
|
||||||
<a style="color: white" class="header-link-item" href="#" data-astro-cid-eiyd7voq="">Ark</a>
|
<a class="header-link-item" href="https://sudovanilla.org/docs/">Docs</a>
|
||||||
<a class="header-link-item" href="/docs/" data-astro-cid-eiyd7voq="">Docs</a>
|
<a class="header-link-item" href="https://sudovanilla.org/init/">Init Privacy</a>
|
||||||
<a class="header-link-item" href="/init/" data-astro-cid-eiyd7voq="">Init Privacy</a>
|
<a class="header-link-item" href="https://status.sudovanilla.org">Status</a>
|
||||||
<noscript> <a class="header-link-item" href="#" title="Everything is up!" data-astro-cid-eiyd7voq>Status</a> </noscript>
|
{{if and .IsSigned}}
|
||||||
<sl-tooltip class="with-js" content="Everything is up!" placement="bottom-end" style="--sl-tooltip-arrow-size: 0; --max-width: 500px;" data-astro-cid-eiyd7voq="">
|
<a class="header-link-item" href data-url="{{AppSubUrl}}/user/logout">Log Out</a>
|
||||||
<a class="header-link-item" href="#" data-astro-cid-eiyd7voq="">Status</a>
|
{{end}}
|
||||||
</sl-tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-row-bottom" data-astro-cid-eiyd7voq="">
|
<div class="header-row-bottom" data-astro-cid-eiyd7voq="">
|
||||||
<div>
|
<div>
|
||||||
<p class="header-sub-service"><span id="show-w-scroll">SudoVanilla</span> Ark</p>
|
{{if not .IsSigned}}
|
||||||
|
<p>Ark</p>
|
||||||
|
{{end}}
|
||||||
|
{{if and .IsSigned}}
|
||||||
|
<a href="/{{.SignedUser.Name}}/" class="header-sub-service">{{.SignedUser.Name}}</a>
|
||||||
|
{{end}}
|
||||||
<a href="/explore/repos/"><svg width="1.5em" height="1.5em" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor"><path d="M17 17L21 21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg> Search</a>
|
<a href="/explore/repos/"><svg width="1.5em" height="1.5em" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor"><path d="M17 17L21 21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg> Search</a>
|
||||||
<a href="/repo/create/"><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#676767" style="--darkreader-inline-color: #a79f94;" data-darkreader-inline-color=""><path d="M8 12H12M16 12H12M12 12V8M12 12V16" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="--darkreader-inline-stroke: #676767;" data-darkreader-inline-stroke=""></path><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="--darkreader-inline-stroke: #676767;" data-darkreader-inline-stroke=""></path></svg> Create</a>
|
<a href="/repo/create/"><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#676767" style="--darkreader-inline-color: #a79f94;" data-darkreader-inline-color=""><path d="M8 12H12M16 12H12M12 12V8M12 12V16" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="--darkreader-inline-stroke: #676767;" data-darkreader-inline-stroke=""></path><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="--darkreader-inline-stroke: #676767;" data-darkreader-inline-stroke=""></path></svg> Create</a>
|
||||||
|
<a href="/repo/migrate/"><svg width="24px" height="24px" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="#676767"><path d="M17 7C18.1046 7 19 6.10457 19 5C19 3.89543 18.1046 3 17 3C15.8954 3 15 3.89543 15 5C15 6.10457 15.8954 7 17 7Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7C8.10457 7 9 6.10457 9 5C9 3.89543 8.10457 3 7 3C5.89543 3 5 3.89543 5 5C5 6.10457 5.89543 7 7 7Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 21C8.10457 21 9 20.1046 9 19C9 17.8954 8.10457 17 7 17C5.89543 17 5 17.8954 5 19C5 20.1046 5.89543 21 7 21Z" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7V17" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7V8C17 10.5 15 11 15 11L9 13C9 13 7 13.5 7 16V17" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> Migrate</a>
|
||||||
|
{{if .IsAdmin}}
|
||||||
|
<a href="/admin"><svg width="24px" height="24px" viewBox="0 0 24 24" stroke-width="1.5" fill="none" xmlns="http://www.w3.org/2000/svg" color="#676767"><path d="M10.0503 10.6066L2.97923 17.6777C2.19818 18.4587 2.19818 19.725 2.97923 20.5061V20.5061C3.76027 21.2871 5.0266 21.2871 5.80765 20.5061L12.8787 13.435" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.0502 10.6066C9.20638 8.45358 9.37134 5.6286 11.1109 3.88909C12.8504 2.14957 16.0606 1.76777 17.8284 2.82843L14.7877 5.8691L14.5051 8.98014L17.6161 8.69753L20.6568 5.65685C21.7175 7.42462 21.3357 10.6349 19.5961 12.3744C17.8566 14.1139 15.0316 14.2789 12.8786 13.435" stroke="#676767" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> Admin</a>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="/explore/repos/">Explore</a>
|
<a href="/explore/repos/">Explore</a>
|
||||||
|
@ -72,12 +79,8 @@
|
||||||
function () {
|
function () {
|
||||||
if (window.scrollY > 50) {
|
if (window.scrollY > 50) {
|
||||||
document.querySelector(".header-row-bottom").style.position = "fixed";
|
document.querySelector(".header-row-bottom").style.position = "fixed";
|
||||||
document.getElementById("show-w-scroll").style.opacity = "1";
|
|
||||||
document.getElementById("show-w-scroll").style.width = "100px";
|
|
||||||
} else {
|
} else {
|
||||||
document.querySelector(".header-row-bottom").style.position = "inherit";
|
document.querySelector(".header-row-bottom").style.position = "inherit";
|
||||||
document.getElementById("show-w-scroll").style.opacity = "0";
|
|
||||||
document.getElementById("show-w-scroll").style.width = "0";
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue