{% extends 'base.html' %} {% load static i18n i18n_tags %} {% block breadcrumb %}{% include 'includes/breadcrumb.html' %}{% endblock %} {% block content %} {% if solution.cover_image %} {% endif %} {% ml_field solution 'title' %} {% ml_field solution 'summary' %} {% if solution.video_url or solution.video_file %} {% trans '方案视频' %} {% if solution.video_file %} {% elif solution.video_url %} {% if 'bilibili' in solution.video_url or 'youtube' in solution.video_url %} {% else %} {% endif %} {% endif %} {% endif %} {{ solution.content_zh|safe|default:solution.content_en|safe }} {% if related %} {% trans '相关方案' %} {% for s in related %} {% if s.cover_image %}{% endif %} {% ml_field s 'title' %} {% trans '查看' %} {% endfor %} {% endif %} {% endblock %}
{% ml_field solution 'summary' %}