Display sub list from list in cookie.

Very basic sub list setup. Cookie must be manually added in devtools.
This commit is contained in:
Matthew Crossman 2021-01-30 16:00:55 +11:00
parent 49a6168607
commit 75bbcefbec
No known key found for this signature in database
GPG key ID: C6B942B019794CC2
10 changed files with 95 additions and 2 deletions

View file

@ -39,3 +39,15 @@
{% else if flair_part.flair_part_type == "text" %}<span>{{ flair_part.value }}</span>{% endif %}
{% endfor %}
{%- endmacro %}
{% macro sub_list(current) -%}
{% if prefs.subs.len() > 0 %}
<div id="sub_list">
<div id="subs">
{% for sub in prefs.subs %}
<a href="/r/{{ sub }}" {% if sub == current %}class="selected"{% endif %}>{{ sub }}</a>
{% endfor %}
</div>
</div>
{% endif %}
{%- endmacro %}