about summary refs log tree commit diff stats
path: root/pug/options/reddit
diff options
context:
space:
mode:
Diffstat (limited to 'pug/options/reddit')
-rw-r--r--pug/options/reddit/reddit.pug53
1 files changed, 53 insertions, 0 deletions
diff --git a/pug/options/reddit/reddit.pug b/pug/options/reddit/reddit.pug
new file mode 100644
index 00000000..faab846c
--- /dev/null
+++ b/pug/options/reddit/reddit.pug
@@ -0,0 +1,53 @@
+doctype html
+html(lang="en")
+    include ../../widgets/head.pug
+        title General
+script(type="module" src="../../../assets/javascripts/localise.js")
+body.option(dir="auto")
+    include ../../widgets/links.pug
+    +links('reddit')
+
+    section.option-block
+        .some-block.option-block
+            h4(data-localise="__MSG_enable__") Enable
+            input#disable-reddit(type="checkbox")
+
+        .some-block.option-block
+            h4#frontend(data-localise="__MSG_frontend__") Frontend
+            select#reddit-frontend
+                option(value="libreddit") Libreddit
+                option(value="teddit") Teddit
+                option(value="old") old.reddit.com
+
+        .some-block.option-block
+            h4(data-localise="__MSG_protocol__") Protocol
+            select#protocol
+                option(value="normal" data-localise="__MSG_normal__") Normal
+                option(value="tor" data-localise="__MSG_tor__") Tor
+
+        .some-block.option-block
+            h4(data-localise="__MSG_bypassReddit__") Bypass "Open in Reddit"
+            input#bypass-watch-on-reddit(type="checkbox")
+        
+        hr
+
+        #libreddit
+            hr
+            .normal
+                include ../../widgets/instances.pug
+                +instances('https://libreddit.com')
+            .tor
+                include ../../widgets/instances.pug
+                +instances('https://libreddit.onion')
+
+        #teddit
+            hr
+            .normal
+                include ../../widgets/instances.pug
+                +instances('https://libreddit.com')
+            .tor
+                include ../../widgets/instances.pug
+                +instances('https://libreddit.onion')
+
+    script(type="module" src="../init.js")
+    script(type="module" src="./reddit.js")
\ No newline at end of file