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) { %> +
+ + <% } %> + + + + + + +
+ + + + + + + + + <% } %>