Template source: trending.html

{% extends 'base.html' %} {% load staticfiles i18n %} {% block title %}{% trans "Trending" %} | {{ block.super }}{% endblock %} {% block content %} <main id="trending"> <section class="cat-box line-bottom"> <section class="container-fluid"> <div class="title-row"> <h1 class="cat-red"><i class="fa fa-line-chart"></i> {% trans "Now Trending" %}</h1> </div> </section> <div class="container-fluid"> <div class="cat-box-title"> <h2 class="no-padding cat-red no-margin"> {% trans "Top articles of the week" %} </h2> </div> <div class="cat-box-gallery"> <div class="row article-row"> {% if not last_week_most_liked_articles|length %} <div class="col-sm-40 article-placeholder"> {% include '_article_like_large.html' %} </div> {% endif %} {% for article_like in last_week_most_liked_articles %} {% if forloop.counter == 1 %} <div class="col-sm-40"> {% include '_article_like_large.html' with article_like=article_like %} </div> {% else %} <div class="col-sm-15"> {% include '_article_like_single.html' with article_like=article_like %} </div> {% endif %} {% endfor %} </div> </div> </div> </section> <section id="video-section" class="cat-box line-bottom"> <div class="container-fluid"> <div class="cat-box-title"> <h2 class="no-padding cat-red no-margin"> {% trans "Top videos of the week" %} </h2> </div> <div class="cat-box-gallery"> <div class="row article-row"> {% if not last_week_most_liked_videos|length %} <div class="col-sm-40 vid-placeholder"> {% include '_video_like_large.html' %} </div> {% endif %} {% for video_like in last_week_most_liked_videos %} {% if forloop.counter == 1 %} <div class="col-sm-40"> {% include '_video_like_large.html' with video_like=video_like %} </div> {% else %} <div class="col-sm-15"> {% include '_video_like_single.html' with video_like=video_like %} </div> {% endif %} {% endfor %} </div> </div> </div> </section> <section class="cat-box line-bottom"> <div class="container-fluid"> <div class="cat-box-title"> <h2 class="no-padding cat-red no-margin"> {% trans "Articles of the week" %} </h2> </div> <div class="cat-box-gallery"> <div class="row article-row"> {% if not articles_of_the_week|length %} <div class="col-sm-40 article-placeholder"> {% include '_article_like_large.html' %} </div> {% endif %} {% for article in articles_of_the_week %} {% if forloop.counter == 1 %} <div class="col-sm-40"> {% include '_article_card_square.html' with article=article.article %} </div> {% else %} <div class="col-sm-15"> {% include '_article_card.html' with article=article.article %} </div> {% endif %} {% endfor %} </div> </div> </div> </section> <section id="video-section" class="cat-box line-bottom"> <div class="container-fluid"> <div class="cat-box-title"> <h2 class="no-padding cat-red no-margin"> {% trans "Videos of the week" %} </h2> </div> <div class="cat-box-gallery"> <div class="row article-row"> {% if not videos_of_the_week|length %} <div class="col-sm-40 vid-placeholder"> {% include '_video_like_large.html' %} </div> {% endif %} {% for video in videos_of_the_week %} {% if forloop.counter == 1 %} <div class="col-sm-40"> {% include '_video_week_large.html' with video=video.video %} </div> {% else %} <div class="col-sm-15"> {% include '_video_card.html' with video=video.video %} </div> {% endif %} {% endfor %} </div> </div> </div> </section> <div class="container-fluid line-bottom"> <div class="row"> <section class="cat-box col-md-6"> <div class="container-fluid"> <div class="cat-box-title"> <h2 class="no-padding cat-red no-margin"> {% trans "Top article of all time" %} </h2> </div> <div class="cat-box-gallery"> <div class="row article-row"> {% if not most_liked_article|length %} <div class="col-sm-12 article-placeholder"> {% include '_article_like_large.html' %} </div> {% endif %} {% for article_like in most_liked_article %} <div class="col-sm-12"> {% include '_article_like_large.html' with article_like=article_like %} </div> {% endfor %} </div> </div> </div> </section> <section class="cat-box col-md-6"> <div class="container-fluid"> <div class="cat-box-title"> <h2 class="no-padding cat-red no-margin"> {% trans "Top video of all time" %} </h2> </div> <div class="cat-box-gallery"> <div class="row article-row"> {% if not most_liked_video|length %} <div class="col-sm-12 vid-placeholder"> {% include '_video_like_large.html' %} </div> {% endif %} {% for video_like in most_liked_video %} <div class="col-sm-12"> {% include '_video_like_large.html' with video_like=video_like %} </div> {% endfor %} </div> </div> </div> </section> </div> </div> </main> {% endblock %}