2020-07-29 14:34:00 +05:30
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="ui one column centered grid">
|
|
|
|
<form class="ui form" action="" method="post" novalidate>
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
<p>
|
|
|
|
{{ form.channelId.label }}<br>
|
|
|
|
{{ form.channelId(size=32) }}<br>
|
|
|
|
{% for error in form.channelId.errors %}
|
|
|
|
<span style="color: red;">[{{ error }}]</span>
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
<p>{{ form.submit() }}</p>
|
|
|
|
</form>
|
|
|
|
|
2020-07-31 15:58:52 +05:30
|
|
|
<div class="ui one column middle aligned grid">
|
|
|
|
<div class="ui message">
|
|
|
|
<div class="header">
|
|
|
|
Tip: Videos are shown below channels.
|
|
|
|
</div>
|
|
|
|
<p>Just scroll down!</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-29 14:34:00 +05:30
|
|
|
{% if results %}
|
|
|
|
<div class="ui one column centered grid">
|
|
|
|
<div class="ui middle aligned divided list">
|
2020-07-31 15:58:52 +05:30
|
|
|
<h3 class="ui dividing header">Users</h3>
|
2020-07-29 14:34:00 +05:30
|
|
|
{% for res in results %}
|
|
|
|
<div class="item">
|
|
|
|
<div class="right floated content">
|
|
|
|
{% if not current_user.is_following_yt(res.channelId) %}
|
|
|
|
<p>
|
|
|
|
<form action="{{ url_for('ytfollow', channelId=res.channelId) }}" method="post">
|
|
|
|
{{ btform.hidden_tag() }}
|
|
|
|
{{ btform.submit(value='Follow') }}
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
<form action="{{ url_for('ytunfollow', channelId=res.channelId) }}" method="post">
|
|
|
|
{{ btform.hidden_tag() }}
|
|
|
|
{{ btform.submit(value='Unfollow') }}
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<img class="ui avatar image" src="{{ res.thumbnail }}">
|
|
|
|
<div class="content">
|
|
|
|
{{res.username}}
|
|
|
|
<div class="ui label">
|
|
|
|
<i class="user icon"></i> {{res.subCount}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-07-31 15:58:52 +05:30
|
|
|
|
|
|
|
|
|
|
|
<div class="ui middle aligned divided list">
|
|
|
|
<h3 class="ui dividing header">Videos</h3>
|
|
|
|
{% if videos %}
|
|
|
|
<div class="ui centered cards">
|
|
|
|
{% for video in videos %}
|
|
|
|
{% include '_video_item.html' %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{% include '_empty_feed.html' %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-07-29 14:34:00 +05:30
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|