mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 08:18:17 +01:00
add shorts tab :3
This commit is contained in:
parent
f72c4d503f
commit
3b6baee793
1 changed files with 39 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
||||||
<% try { %>
|
<% try { %>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
This Source Code Form is subject to the terms of the GNU General Public License:
|
This Source Code Form is subject to the terms of the GNU General Public License:
|
||||||
|
|
||||||
|
@ -814,10 +815,11 @@ width: fit-content;
|
||||||
|
|
||||||
<div style="text-align: center;padding: 3px;margin-top: 0px;">
|
<div style="text-align: center;padding: 3px;margin-top: 0px;">
|
||||||
|
|
||||||
<div class="tabs tabs-center">
|
<div class="tabs tabs-center" style="overflow: scroll;width: 7em;font-size: 10px;margin-left: -1px;font-family: poketube flex !important;font-weight: 800 !important;font-stretch: ultra-expanded;">
|
||||||
<% if (!tab) { %>
|
|
||||||
|
|
||||||
<a href="/channel?id=<%=ID%>" class="tab active">Home</a>
|
<% if (!tab) { %>
|
||||||
|
|
||||||
|
<a href="/channel?id=<%=ID%>" class="tab active">Videos</a>
|
||||||
<% if (Array.isArray(c.comments)) { %>
|
<% if (Array.isArray(c.comments)) { %>
|
||||||
|
|
||||||
<% if (c.comments.length != "0") { %>
|
<% if (c.comments.length != "0") { %>
|
||||||
|
@ -825,22 +827,54 @@ width: fit-content;
|
||||||
<a href="/channel?id=<%=ID%>&tab=community" class="tab">Community</a>
|
<a href="/channel?id=<%=ID%>&tab=community" class="tab">Community</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% if (Array?.isArray(shorts?.videos)) { %>
|
||||||
|
|
||||||
|
<% if (turntomins(shorts?.videos[0]?.lengthSeconds) != "aN:aN" ) { %>
|
||||||
|
|
||||||
|
<a href="/channel?id=<%=ID%>&tab=shorts" class="tab">Shorts</a>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
<a href="/channel?id=<%=ID%>&tab=about" class="tab">About</a>
|
<a href="/channel?id=<%=ID%>&tab=about" class="tab">About</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (tab ==="about") { %>
|
<% if (tab ==="about") { %>
|
||||||
|
<% if (Array?.isArray(shorts?.videos)) { %>
|
||||||
|
|
||||||
|
<% if (turntomins(shorts?.videos[0]?.lengthSeconds) != "aN:aN" ) { %>
|
||||||
|
|
||||||
<a href="/channel?id=<%=ID%>" class="tab">Home</a>
|
<a href="/channel?id=<%=ID%>&tab=shorts" class="tab">Shorts</a>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
<a href="/channel?id=<%=ID%>" class="tab">Videos</a>
|
||||||
<a href="/channel?id=<%=ID%>&tab=community" class="tab">Community</a>
|
<a href="/channel?id=<%=ID%>&tab=community" class="tab">Community</a>
|
||||||
<a href="/channel?id=<%=ID%>&tab=about" class="tab active">About</a>
|
<a href="/channel?id=<%=ID%>&tab=about" class="tab active">About</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<% if (tab ==="community") { %>
|
<% if (tab ==="community") { %>
|
||||||
|
|
||||||
<a href="/channel?id=<%=ID%>" class="tab">Home</a>
|
<a href="/channel?id=<%=ID%>" class="tab">Videos</a>
|
||||||
|
<% if (Array?.isArray(shorts?.videos)) { %>
|
||||||
|
|
||||||
|
<% if (turntomins(shorts?.videos[0]?.lengthSeconds) != "aN:aN" ) { %>
|
||||||
|
|
||||||
|
<a href="/channel?id=<%=ID%>&tab=shorts" class="tab">Shorts</a>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
<a href="/channel?id=<%=ID%>&tab=community" class="tab active">Community</a>
|
<a href="/channel?id=<%=ID%>&tab=community" class="tab active">Community</a>
|
||||||
<a href="/channel?id=<%=ID%>&tab=about" class="tab">About</a>
|
<a href="/channel?id=<%=ID%>&tab=about" class="tab">About</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% if (tab ==="shorts") { %>
|
||||||
|
|
||||||
|
<a href="/channel?id=<%=ID%>" class="tab">Videos</a>
|
||||||
|
<% if (Array?.isArray(shorts?.videos)) { %>
|
||||||
|
|
||||||
|
<% if (turntomins(shorts?.videos[0]?.lengthSeconds) != "aN:aN" ) { %>
|
||||||
|
|
||||||
|
<a href="/channel?id=<%=ID%>&tab=shorts" class="tab active">Shorts</a>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
<a href="/channel?id=<%=ID%>&tab=community" class="tab">Community</a>
|
||||||
|
<a href="/channel?id=<%=ID%>&tab=about" class="tab">About</a>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue