Remove repeated logic

This commit is contained in:
Roberto Rosario
2015-04-07 01:54:01 -04:00
parent 857f9f2479
commit ecfa937068
@@ -21,13 +21,8 @@
{% else %} {% else %}
<div class="col-xs-12"> <div class="col-xs-12">
{% endif %} {% endif %}
{% if subtemplate.form %} {% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %} {{ rendered_subtemplate }}
{{ rendered_subtemplate }}
{% else %}
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>