From a9946aa831feaa690499caef7852e34aa9eba1d2 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 30 Nov 2022 18:48:15 +0000 Subject: [PATCH] POKETUBE LITE!!!! HELL YEAH!!!! --- html/lite.ejs | 625 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 625 insertions(+) create mode 100644 html/lite.ejs diff --git a/html/lite.ejs b/html/lite.ejs new file mode 100644 index 00000000..dfa82416 --- /dev/null +++ b/html/lite.ejs @@ -0,0 +1,625 @@ + <% if (!isMobile) { %> + + + + + <% if (e === false) { %> + + <% } %> + <% if (!e) { %> + + + + + + + + + + + + <% } %> + + <%=video.Title%> | PokeTube Lite + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ +
+ +
+ + +
+ + +
+
+
+
+
+
<%=video.Title%>
+ + <%=convert(engagement.viewCount)%> Views - By <%=video.Channel.Name%> + +
+
+ +
+ +
+

+ <%=convert(engagement.likes)%> +
+

Likes

+

+
+
+

+ <%=convert(engagement.dislikes)%> +
+

Dislikes

+ +

+
+ + +

+ + +
+

Download

+ +

+
+
+ + + + + + + + + +
+
+ +
+ + +
+ +
Description
+
+ + <% if (String(video.Description) != "[object Object]") { %> + <% if (String(inv_vid.descriptionHtml) != "undefined") { %> + <% if (String(inv_vid.descriptionHtml) != " ") { %> + + <%-String(inv_vid.descriptionHtml).replace(/\n/g, "
").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %> + + <% } %> <% } %> + <% } %> + + <% if (String(video.Description) == "[object Object]") { %> +

No Description On this Video ( sad innit :c )

+ <% } %> + + + + +
Metadata And Engagement
+
+ +

+ not on lite version + + + + +


+ <% if (Array.isArray(video.Tags.Tag)) { %> + +
Tags
+
+ + <% video.Tags.Tag.forEach(x => { %> + + + <% }) %> +
+ + +
+ <% } %> + + + +

+ + +
+ + + +
+ + +
+ +
+ +
+ + +
+ + <%=convert(engagement.likes)%> +
+
+ <%=convert(engagement.dislikes)%> +
+ + +
+ + + + Download + + + + <% if (!video.Channel.Name.endsWith(' - Topic')) { %> + <% if (!video.Title.endsWith('Audio)')) { %> + + + + Encryption + + <% }%> <% }%> + + <% if (video.Channel.Name.endsWith(' - Topic') || video.Title.endsWith('Audio)')) { %> + + <% if (video.Channel.Name.endsWith(' - Topic') || video.Title.endsWith('Audio)')) { %> + + + Open In Music Player + + + <% }%> + <% }%> + +
+ + + + +
+
+ +
+ +
+ +
+ + + + + + + + <% if(!inv.comments) { %> +
+ + <% } %> + + + <% if(inv.comments) { %> +
+ + <% } %> + + + + + + +
+ + + + + + + + + <% } %>