From 53951af504bd0e73ad75bf13f695e18f89bd21e8 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 16 Nov 2022 14:49:42 +0100 Subject: [PATCH] Remake channel pages - not working on mobile for now --- html/channel.ejs | 80 ++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index 930701b..77bd1c3 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -16,8 +16,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/. --> - - <% if (ID === "UCFAiFyGs6oDiF1Nf-rRJpZA") { %> + + <% if (ID === "UCFAiFyGs6oDiF1Nf-rRJpZA") { %> Technoblade Never Dies! - PokeTube <% } %> <%=j.Channel.Metadata.Name%> - PokeTube @@ -343,8 +343,9 @@ <% } %> -
-
+
+ +
<% if (isMobile) { %> @@ -395,7 +396,7 @@ Channel Avatar
-

<%=j.Channel.Metadata.Name%>

+

<%=j.Channel.Metadata.Name%>

@@ -403,24 +404,17 @@ <% if (!isMobile) { %>
- <% if (!tab) { %> - - Uploads - About - <% } %> - <% if (tab) { %> - - Uploads - About - <% } %> - +
+ <% } %>
<% } %> + + <% if (isMobile) { %>
@@ -454,33 +448,19 @@ <% } %> - -
- <% if (!tab) { %> - - -
- - - -
- - not workin rn :c - - <% } %> - - - <% if (tab === "about") { %> -
-

About

+ <% if (!isMobile) { %> +
+
+

About

<% if (desc) { %>

<%-desc.replace(/\n/g, "
")%>

<% } %> <% if (wiki.extract_html) { %> -

From the web

+ +

From the web

@@ -509,10 +489,30 @@

<%- about.Joined%>

<%- about.ViewCount%>

-
-
- <% } %> - +
+
+ +

Content

+

+ Content to get you starded on this channel! (note : videos are broken atm on some channels - see issue #14) +

+ +
+ <% if ( tj.Channel.Contents.ItemSection[2]) { %> + + <% tj.Channel.Contents.ItemSection[2].Shelf.Items.Video.forEach(x => { %> + +
<%- x.duration %>
+
+ <%- x.Title %> + +
+
+ <% }) %> + <% } %> + <% } %> + +