fix and test the linking to the style switcher

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2025-03-17 00:47:00 -05:00
parent 41350d4b7a
commit f3eed9d4f2
2 changed files with 15 additions and 3 deletions

View File

@@ -69,10 +69,10 @@ applyStyleFromCookie();
{% if not loop.last %} &raquo; {% endif %}
{% endfor %}
</div>
{% if page_styles %}
{% if config.PAGE_STYLES %}
<div class="styles">
{% for style in page_styles %}
<a href="#" onclick="setStyle('{{ style }}'); return false;">[{{ style }}]</a>
{% for style, stylesheet in config.PAGE_STYLES.items() %}
<a href="" onclick="setStyle('{{ style }}'); return false;">[{{ style }}]</a>
{% endfor %}
</div>
{% endif %}