diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-06-21 21:59:33 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-06-21 21:59:33 -0700 |
commit | 02962df0526cf265965c442bf9a261ceba55864e (patch) | |
tree | 8094c558b4fea0fecae66240bb76155c219cbaa9 /youtube/templates | |
parent | 1156b0998758ee803c7e8ae0cc2beb5181c232a3 (diff) | |
download | yt-local-02962df0526cf265965c442bf9a261ceba55864e.tar.lz yt-local-02962df0526cf265965c442bf9a261ceba55864e.tar.xz yt-local-02962df0526cf265965c442bf9a261ceba55864e.zip |
Refactor watch page related videos to use item rendering macro
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/watch.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index f00413d..122958c 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -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 %} |