{% extends 'main_user.html' %} {% load static %} {% block title %}Home{% endblock %} {% block content %}
Recent Videos
Trending Videos
{% for video in f_videos %}
{% if video.thumbnail %} {%else%} {%endif%}
{%if video.duration %}{{video.duration}}{%else%}00{%endif%}
{{video.title}}
{{video.time_published}}
{% if request.user.is_authenticated %} {%else%} {%endif%} {{video.video_views}} Views
{%endfor%} {% for video in c_videos %}
{% if video.user.username %} {{video.user}} {%else%} {{video.user}} {%endif%}
{% if video.thumbnail %} {%else%} {%endif%}
{%if video.duration %}{{video.duration}}{%else%}00{%endif%}
{{video.title}}
{{video.time_published}}
{% if request.user.is_authenticated %} {%else%} {%endif%} {{video.video_views}} Views
{%endfor%} {% for video in p_videos %}
{% if video.user.username %} {{video.user}} {% if video.featured %}sponsored{% else %}{%endif%} {%else%} {{video.user}} {%endif%}
{% if video.thumbnail %} {%else%} {%endif%}
{%if video.duration %}{{video.duration}}{%else%}00{%endif%}
{{video.title}}
{{video.time_published}}
{% if request.user.is_authenticated %} {%else%} {%endif%} {{video.video_views}} Views
{%endfor%} {% for video in videos %} {% if video.country == request.user.profile.country %} {%else%}
{% if video.user.username %} {{video.user}} {% if video.featured %}sponsored{% else %}{%endif%} {%else%} {{video.user}} {%endif%}
{% if video.thumbnail %} {%else%} {%endif%}
{%if video.duration %}{{video.duration}}{%else%}00{%endif%}
{{video.title}}
{{video.time_published}}
{% if request.user.is_authenticated %} {%else%} {%endif%} {{video.video_views}} Views
{%endif%} {%endfor%}
{%include 'footer.html'%} {% endblock %}