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/channel.html

52 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block content %}
<div class="blue ui centered card">
<div class="content">
<div class="center aligned author">
<img class="ui avatar image" src="{{channel.avatar}}">
</div>
<div style="margin: .1em" class="center aligned header"><a href="">{{channel.name}}</a></div>
<div class="center aligned description">
2020-08-24 01:03:23 +05:30
<div class="statistic">
<div class="value">
<i class="users icon"></i>{{channel.subCount}}
</div>
<div class="label">
Followers
</div>
</div>
</div>
</div>
2020-08-23 21:06:00 +05:30
<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 %}
<p>
<form action="{{ url_for('ytunfollow', channelId=channel.id) }}" method="post">
{{ btform.hidden_tag() }}
{{ btform.submit(value='Unfollow') }}
</form>
</p>
{% endif %}
</div>
</div>
</div>
2020-08-23 14:33:49 +05:30
<br>
<br>
{% if not videos %}
{% include '_empty_feed.html' %}
{% else %}
2020-08-23 14:33:49 +05:30
<div class="ui centered cards">
{% for video in videos %}
{% include '_video_item.html' %}
{% endfor %}
</div>
2020-08-23 14:33:49 +05:30
{% endif %}
{% endblock %}