fix partner details to show video links
</div>
</div>
</li>
- {% if object.additional_resources %}
+ {% if video_tutorials %}
<li class="timeline-inverted">
<div class="timeline-badge"><i class="fa fa-file"></i>
</div>
<div class="timeline-panel">
<div class="timeline-body">
- <p>
- {% comment %}
- Cache lifetime should be None, which would be forever since we're
- invalidating on update. However, as 2017-04-06 a bug in django
- doesn't allow for None to be passed from here into cache. The
- fix is in master, but not release.
- https://code.djangoproject.com/ticket/27882
- {% endcomment %}
- {% cache 31536000 partner_additional_resources LANGUAGE_CODE object.pk %}
- {{ object.additional_resources | twlight_wikicode2html | safe }}
- {% endcache %}
- </p>
+ <h4 class="timeline-title">
+ {% comment %} Translators: If a partner has video tutorials, this text shows as the title for that information field.{% endcomment %}
+ {% trans "Video tutorials" %}
+ </h4>
+ <ul>
+ {% comment %} Translators: If a partner has video tutorials, this text links to the video(s).{% endcomment %}
+ {% for each_tutorial in video_tutorials %}
+ <li><a href={{ each_tutorial | safe }}>{% trans 'Video' %} {{ forloop.counter }}</a></li>
+ {% endfor %}
+ </ul>
</div>
</div>
</li>
