id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux
9173 Conditional content of template blocks while0pass nobody "It will be very good if there is some possibility to mark sort of ""conditional content"" of the template blocks ({% block .. %}), that is the content that is displayed only if in a child template the block has some content. For instance, we have 2 templates:
{{{
parent.html
{% block firstcol %}{% endblock %} |
{% block secondcol %}{% endblock %} |
{% block thirdcol %}{% blockcontent %} | {% endblock %}
}}}
{{{
child.html
{% extends 'parent.html' %}
{% block firstcol %} 1 {% endblock %}
{% block firstcol %} 2 {% endblock %}
}}}
We should have such an output text:
{{{
}}}
but not the following:
{{{
}}}
" New feature new Template system dev Normal masterjakul@… FunkyBob Someday/Maybe 1 0 0 1 0 0