@ -40,40 +40,40 @@
< div class = "channel-list {{ view_style }}" >
< div class = "channel-list {{ view_style }}" >
{% if results %}
{% if results %}
{% for channel in results %}
{% for channel in results %}
< div class = "channel-item {{ view_style }}" >
< div class = "channel-item {{ view_style }}" >
< div class = "channel-banner {{ view_style }}" >
< div class = "channel-banner {{ view_style }}" >
< a href = "{% url 'channel_id' channel.source.channel_id %}" >
< a href = "{% url 'channel_id' channel.source.channel_id %}" >
< img src = "/cache/channels/{{ channel.source.channel_id }}_banner.jpg" alt = "{{ channel.source.channel_id }}-banner" >
< img src = "/cache/channels/{{ channel.source.channel_id }}_banner.jpg" alt = "{{ channel.source.channel_id }}-banner" >
< / a >
< / a >
< / div >
< div class = "info-box info-box-2 {{ view_style }}" >
< div class = "info-box-item" >
< div class = "round-img" >
< a href = "{% url 'channel_id' channel.source.channel_id %}" >
< img src = "/cache/channels/{{ channel.source.channel_id }}_thumb.jpg" alt = "channel-thumb" >
< / a >
< / div >
< div >
< h3 > < a href = "{% url 'channel_id' channel.source.channel_id %}" > {{ channel.source.channel_name }}< / a > < / h3 >
{% if channel.source.channel_subs >= 1000000 %}
< p > Subscribers: {{ channel.source.channel_subs|intword }}< / p >
{% else %}
< p > Subscribers: {{ channel.source.channel_subs|intcomma }}< / p >
{% endif %}
< / div >
< / div >
< / div >
< div class = "info-box-item" >
< div class = "info-box info-box-2 {{ view_style }}" >
< div >
< div class = "info-box-item" >
< p > Last refreshed: {{ channel.source.channel_last_refresh }}< / p >
< div class = "round-img" >
{% if channel.source.channel_subscribed %}
< a href = "{% url 'channel_id' channel.source.channel_id %}" >
< button class = "unsubscribe" type = "button" id = "{{ channel.source.channel_id }}" onclick = "unsubscribe(this.id)" title = "Unsubscribe from {{ channel.source.channel_name }}" > Unsubscribe< / button >
< img src = "/cache/channels/{{ channel.source.channel_id }}_thumb.jpg" alt = "channel-thumb" >
{% else %}
< / a >
< button type = "button" id = "{{ channel.source.channel_id }}" onclick = "subscribe(this.id)" title = "Subscribe to {{ channel.source.channel_name }}" > Subscribe< / button >
< / div >
{% endif %}
< div >
< h3 > < a href = "{% url 'channel_id' channel.source.channel_id %}" > {{ channel.source.channel_name }}< / a > < / h3 >
{% if channel.source.channel_subs >= 1000000 %}
< p > Subscribers: {{ channel.source.channel_subs|intword }}< / p >
{% else %}
< p > Subscribers: {{ channel.source.channel_subs|intcomma }}< / p >
{% endif %}
< / div >
< / div >
< div class = "info-box-item" >
< div >
< p > Last refreshed: {{ channel.source.channel_last_refresh }}< / p >
{% if channel.source.channel_subscribed %}
< button class = "unsubscribe" type = "button" id = "{{ channel.source.channel_id }}" onclick = "unsubscribe(this.id)" title = "Unsubscribe from {{ channel.source.channel_name }}" > Unsubscribe< / button >
{% else %}
< button type = "button" id = "{{ channel.source.channel_id }}" onclick = "subscribe(this.id)" title = "Subscribe to {{ channel.source.channel_name }}" > Subscribe< / button >
{% endif %}
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% endfor %}
{% endfor %}
{% else %}
{% else %}
< h2 > No channels found...< / h2 >
< h2 > No channels found...< / h2 >