Refactor watch page related videos to use item rendering macro

This commit is contained in:
James Taylor
2019-06-21 21:59:33 -07:00
parent 1156b09987
commit 02962df052
2 changed files with 20 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
{% extends "base.html" %}
{% import "common_elements.html" as common_elements %}
{% block page_title %}{{ title }}{% endblock %}
{% block style %}
main{
@@ -200,7 +201,9 @@
<nav id="related">
{{ related|safe }}
{% for info in related %}
{{ common_elements.item(info) }}
{% endfor %}
</nav>
{% endblock main %}