This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Yotter/app/templates/ytsearch.html

65 lines
2.7 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block content %}
2020-08-27 15:37:59 +05:30
<div class="ui text container">
<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-08-30 13:35:16 +05:30
{% if channels %}
<h3 class="ui dividing header">Users</h3>
2020-08-27 15:37:59 +05:30
<div class="ui relaxed divided list">
2020-07-31 15:58:52 +05:30
2020-08-17 14:32:18 +05:30
{% for res in channels %}
<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>
2020-09-02 00:33:51 +05:30
<img alt="Avatar" class="ui avatar image" src="{{ res.thumbnail }}">
2020-08-17 14:32:18 +05:30
<div class="content">
2020-08-27 15:37:59 +05:30
<a class = "header" href="{{ url_for('channel', id=res.channelId)}}">{{res.username}}</a>
<div class="description"><div class="ui label">
2020-08-17 14:32:18 +05:30
<i class="user icon"></i> {{res.subCount}}
2020-08-27 15:37:59 +05:30
</div></div>
2020-08-17 14:32:18 +05:30
</div>
</div>
2020-07-31 15:58:52 +05:30
{% endfor %}
</div>
{% endif %}
2020-08-17 14:32:18 +05:30
<div class="ui middle aligned divided list">
{% if videos %}
2020-08-30 13:35:16 +05:30
<h3 class="ui dividing header">Videos</h3>
2020-08-17 14:32:18 +05:30
<div class="ui centered cards">
{% for video in videos %}
{% include '_video_item.html' %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endblock %}