Source

django-swingcms / swingcms / cms / templates / cms / view_grid.html

Full commit
{% load i18n %}



{% for y in collage.grid %}

    <div id='wr_{{ collage.name }}_{{ forloop.counter0 }}'>

        <table id='table_{{ collage.name }}_{{ forloop.counter0 }}'><tr>    
            
            {% for x in y %}          

                <td id='td_{{ x.css_name }}'>
                    
                    {% if not x.obj == None %}

                        {% with x.obj as obj %}

                            {% if not obj.model_name == 'collage' %}

                                {% include x.template_path %}

                            {% else %}

                                <!-- support in roadmap -->
                                WARNING: NESTED COLLAGE NOT SUPPORTED!!!

                            {% endif %}

                        {% endwith %}

                    {% else %}

                        {% if not x.plugin == None %}

                            {% with x.plugin as plugin %}

                                {% include x.template_path %}

                            {% endwith %}

                        {% endif %} 

                    {% endif %}           

                </td>

            {% endfor %}

        </tr></table>

    </div>

{% endfor %}