{% extends "base.html" %}
{% block content %}
<div class="blue ui centered card">
<div class="content">
<div class="center aligned author">
<img alt="Avatar" class="ui avatar image" src="/img/{{channel.avatar.replace('/', '~')}}">
</div>
<div class="center aligned header"><a href="">{{channel.name}}</a></div>
<div class="center aligned description">
<div class="statistic">
<div class="value">
<i class="users icon"></i>{{channel.subCount}}
<div class="label">
Followers
{% if restricted or current_user.is_authenticated %}
<div class="center aligned extra content">
{% if not current_user.is_following_yt(channel.id) %}
<p>
<form action="{{ url_for('ytfollow', channelId=channel.id) }}" method="post">
{{ btform.hidden_tag() }}
{{ btform.submit(value='Follow') }}
</form>
</p>
{% else %}
<form action="{{ url_for('ytunfollow', channelId=channel.id) }}" method="post">
{{ btform.submit(value='Unfollow') }}
{% endif %}
<br>
{% if not videos %}
{% include '_empty_feed.html' %}
<div class="ui centered cards">
{% for video in videos %}
{% include '_video_item.html' %}
{% endfor %}
{% endblock %}