about summary refs log tree commit diff stats
path: root/src/pages/popup/switches.pug
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2023-05-09 08:58:34 +0300
committerManeraKai <manerakai@protonmail.com>2023-05-09 08:58:34 +0300
commit488997d66a7d2578d29656ff76a488b521e036d9 (patch)
tree75c6440a73190dec052f9334d757ccccf4923f72 /src/pages/popup/switches.pug
parentMerge branch 'popup' of https://github.com/sittaneumayer/libredirect into sit... (diff)
downloadlibredirect-488997d66a7d2578d29656ff76a488b521e036d9.zip
Some tweaks to the options page
Diffstat (limited to 'src/pages/popup/switches.pug')
-rw-r--r--src/pages/popup/switches.pug10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pages/popup/switches.pug b/src/pages/popup/switches.pug
new file mode 100644
index 00000000..bd53ce7e
--- /dev/null
+++ b/src/pages/popup/switches.pug
@@ -0,0 +1,10 @@
+each _, service in services    
+    div(class=service + " some-block hide")
+        a(class="title" href=services[service].url)
+            if services[service].imageType == 'svgMono'
+                img(class='dark' src=`/assets/images/${service}-icon.svg`)
+                img(class='light' src=`/assets/images/${service}-icon-light.svg`)
+            else
+                img(src=`/assets/images/${service}-icon.${services[service].imageType}`)
+            h4=services[service].name
+        input(class=service + "-enabled" type="checkbox")
\ No newline at end of file