Updating channel list to use icons instead of a simple bulleted list. Also added toggles in preparation for #42 and #47. Closes #51.
This commit is contained in:
35
www/themes/jason-williamsca/partials/feed/channels.htm
Normal file
35
www/themes/jason-williamsca/partials/feed/channels.htm
Normal file
@@ -0,0 +1,35 @@
|
||||
==
|
||||
{% for channel in channels %}
|
||||
<!--<div class="custom-control custom-switch">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="custom-control-input channelswitch"
|
||||
id="channel-{{ channel.slug }}"
|
||||
data-channel="{{ channel.slug }}"
|
||||
{% if channelfilter == 'all' or channel.slug in channelfilter %}checked{% endif %}
|
||||
>
|
||||
<label class="custom-control-label" for="channel-{{ channel.slug }}">
|
||||
<i class="{{ channel.icon }} fa-fw" style="color: {{ channel.colour }};"></i>
|
||||
{{ channel.title }}
|
||||
</label>
|
||||
<a
|
||||
href="/feed/{{ channel.slug }}"
|
||||
title="Show only {{ channel.title }} posts"
|
||||
class="feed-showonly"
|
||||
data-toggle="tooltip"
|
||||
data-channel="{{ channel.slug }}"
|
||||
><i class="far fa-eye"></i></a>
|
||||
</div>-->
|
||||
|
||||
<div>
|
||||
<i class="{{ channel.icon }} fa-fw" style="color: {{ channel.colour }};"></i>
|
||||
{{ channel.title }}
|
||||
<a
|
||||
href="/feed/{{ channel.slug }}"
|
||||
title="Show only {{ channel.title }} posts"
|
||||
class="feed-showonly"
|
||||
data-toggle="tooltip"
|
||||
data-channel="{{ channel.slug }}"
|
||||
><i class="far fa-eye"></i></a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user