Twig: How to only show content if translation is given?

前端 未结 0 1597
既然无缘
既然无缘 2020-12-13 17:59
{% for job in jobs %}
 {% if job.subject|trans %}
   
{{ job.info }}
{% endif %} {% endfor %}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题