open-orchestra/open-orchestra-elastica-bundle

View on GitHub
ElasticaFrontBundle/Resources/views/Block/List/show.html.twig

Summary

Maintainability
Test Coverage
{% extends 'OpenOrchestraDisplayBundle:Block:layout.html.twig' %}

{% block content %}
    {% for data in searchData %}
        {% if (data.type == 'node') %}
            <p><b> {{ 'open_orchestra_elastica_front.block_list.page'|trans }} </b> : <a href="{{ url_node(data.nodeId) }}">{{ data.name }}</a></p>
        {% else %}
            {% for key, value in data.data %}
                <b>{{ key }}</b> => {{ value }}<br/>
            {% endfor %}
        {% endif %}
        <br/>
    {% endfor %}
{% endblock %}