summaryrefslogtreecommitdiff
path: root/templates/themes/catalog/catalog.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-10-05 17:49:27 +0200
committerczaks <marcin@6irc.net>2014-10-05 17:49:27 +0200
commit86eed0b3494f6d7cb516393bbed702bfda89b2c4 (patch)
tree9c42eac364d2bdefc2cd585b449efe77215cf080 /templates/themes/catalog/catalog.html
parent7aa2976524b0411795929203804ee3c27176ac19 (diff)
add stylesheet choice to catalog theme
Diffstat (limited to 'templates/themes/catalog/catalog.html')
-rw-r--r--templates/themes/catalog/catalog.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html
index 441e3a0a..72cb8698 100644
--- a/templates/themes/catalog/catalog.html
+++ b/templates/themes/catalog/catalog.html
@@ -73,9 +73,17 @@
<br><a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2014 Tinyboard Development Group
<br><a href="https://int.vichan.net/devel/">vichan</a> Copyright &copy; 2012-2014 vichan-devel</p>
</footer>
- <script type="text/javascript">
- ready();
- </script>
+ <script type="text/javascript">{% raw %}
+ var styles = {
+ {% endraw %}
+ {% for name, uri in config.stylesheets %}{% raw %}'{% endraw %}{{ name|addslashes }}{% raw %}' : '{% endraw %}/stylesheets/{{ uri|addslashes }}{% raw %}',
+ {% endraw %}{% endfor %}{% raw %}
+ }; onready(init);
+ {% endraw %}</script>
+
+ <script type="text/javascript">{% raw %}
+ ready();
+ {% endraw %}</script>
</body>
</html>
{% endfilter %}