tweak templates

This commit is contained in:
Your Name 2024-07-15 22:18:25 -04:00 committed by Henri Dickson
parent 520fb0f927
commit 61247dd0ed
9 changed files with 9 additions and 9 deletions

View file

@ -67,7 +67,7 @@ class Podcast(Item):
# "brief", # "brief",
"localized_title", "localized_title",
"language", "language",
"hosts", "host",
"genre", "genre",
"official_site", "official_site",
"localized_description", "localized_description",

View file

@ -138,7 +138,7 @@ class PodcastRSSFeedTestCase(TestCase):
# metadata = site.resource.metadata # metadata = site.resource.metadata
# self.assertEqual(metadata["title"], "大内密谈") # self.assertEqual(metadata["title"], "大内密谈")
# self.assertEqual(metadata["genre"], ["other"]) # self.assertEqual(metadata["genre"], ["other"])
# self.assertEqual(metadata["hosts"], ["大内密谈"]) # self.assertEqual(metadata["host"], ["大内密谈"])
# self.assertIsNotNone(site.get_item().recent_episodes[0].title) # self.assertIsNotNone(site.get_item().recent_episodes[0].title)
# self.assertIsNotNone(site.get_item().recent_episodes[0].link) # self.assertIsNotNone(site.get_item().recent_episodes[0].link)
# self.assertIsNotNone(site.get_item().recent_episodes[0].media_url) # self.assertIsNotNone(site.get_item().recent_episodes[0].media_url)

View file

@ -9,7 +9,7 @@
{% load duration %} {% load duration %}
<!-- class specific details --> <!-- class specific details -->
{% block details %} {% block details %}
<div>{% include '_people.html' with people=item.additional_title role='other title' max=5 %}</div> <div>{% include '_people.html' with people=item.additional_title role='' max=99 %}</div>
<div>{% include '_people.html' with people=item.artist role='artist' max=5 %}</div> <div>{% include '_people.html' with people=item.artist role='artist' max=5 %}</div>
<div>{% include '_people.html' with people=item.company role='publisher' max=5 %}</div> <div>{% include '_people.html' with people=item.company role='publisher' max=5 %}</div>
<div> <div>

View file

@ -9,7 +9,7 @@
<!-- class specific details --> <!-- class specific details -->
{% block details %} {% block details %}
<div class="tldr-2" _="on click toggle .tldr-2 on me"> <div class="tldr-2" _="on click toggle .tldr-2 on me">
{% include '_people.html' with people=item.additional_title _role='other title' max=99 %} {% include '_people.html' with people=item.additional_title _role='' max=99 %}
</div> </div>
<div> <div>
{% if item.release_date %} {% if item.release_date %}

View file

@ -8,7 +8,7 @@
{% load thumb %} {% load thumb %}
<!-- class specific details --> <!-- class specific details -->
{% block details %} {% block details %}
<div>{% include '_people.html' with people=item.additional_title role='other title' max=5 %}</div> <div>{% include '_people.html' with people=item.additional_title role='' max=99 %}</div>
<div>{% include '_people.html' with people=item.director role='director' max=5 %}</div> <div>{% include '_people.html' with people=item.director role='director' max=5 %}</div>
<div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div> <div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div>
<div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div> <div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div>

View file

@ -8,7 +8,7 @@
{% load thumb %} {% load thumb %}
<!-- class specific details --> <!-- class specific details -->
{% block details %} {% block details %}
<div>{% include '_people.html' with people=item.additional_title _role='other title' max=5 %}</div> <div>{% include '_people.html' with people=item.additional_title _role='' max=99 %}</div>
<div> <div>
{% if item.opening_date %} {% if item.opening_date %}
{% trans "opening date" %}: {% trans "opening date" %}:

View file

@ -15,7 +15,7 @@
{% if item.closing_date %}~ <span>{{ item.closing_date }}</span>{% endif %} {% if item.closing_date %}~ <span>{{ item.closing_date }}</span>{% endif %}
{% endif %} {% endif %}
</div> </div>
<div>{% include '_people.html' with people=item.additional_title _role='other title' max=5 %}</div> <div>{% include '_people.html' with people=item.additional_title _role='' max=99 %}</div>
<div>{% include '_people.html' with people=item.genre role='genre' max=5 %}</div> <div>{% include '_people.html' with people=item.genre role='genre' max=5 %}</div>
<div>{% include '_people.html' with people=item.troupe role='troupe' max=5 %}</div> <div>{% include '_people.html' with people=item.troupe role='troupe' max=5 %}</div>
<div>{% include '_people.html' with people=item.location role='theater' max=5 %}</div> <div>{% include '_people.html' with people=item.location role='theater' max=5 %}</div>

View file

@ -8,7 +8,7 @@
{% load thumb %} {% load thumb %}
<!-- class specific details --> <!-- class specific details -->
{% block details %} {% block details %}
<div>{% include '_people.html' with people=item.additional_title role='other title' max=5 %}</div> <div>{% include '_people.html' with people=item.additional_title role='' max=99 %}</div>
<div>{% include '_people.html' with people=item.director role='director' max=5 %}</div> <div>{% include '_people.html' with people=item.director role='director' max=5 %}</div>
<div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div> <div>{% include '_people.html' with people=item.playwright role='playwright' max=5 %}</div>
<div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div> <div>{% include '_people.html' with people=item.actor role='actor' max=5 %}</div>

View file

@ -8,7 +8,7 @@
{% load thumb %} {% load thumb %}
<!-- class specific details --> <!-- class specific details -->
{% block details %} {% block details %}
<div>{% include '_people.html' with people=item.additional_title role='other title' max=5 %}</div> <div>{% include '_people.html' with people=item.additional_title role='' max=99 %}</div>
<div>{% include '_people.html' with people=item.author role='author' max=5 %}</div> <div>{% include '_people.html' with people=item.author role='author' max=5 %}</div>
{% endblock %} {% endblock %}
{% block left_sidebar %} {% block left_sidebar %}