about summary refs log tree commit diff stats
path: root/pug/options/reddit/reddit.pug
blob: 5068acb351e5ebdda7216b558bc3870344c67bbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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')
                include ../../widgets/latency.pug
                +latency('libreddit')
            .tor
                include ../../widgets/instances.pug
                +instances('https://libreddit.onion')

        #teddit
            hr
            .normal
                include ../../widgets/instances.pug
                +instances('https://teddit.com')
                +latency('teddit')
            .tor
                include ../../widgets/instances.pug
                +instances('https://teddit.onion')

    script(type="module" src="../init.js")
    script(type="module" src="./reddit.js")