open-orchestra/open-orchestra-display-bundle

View on GitHub
DisplayBundle/Resources/views/Block/News/show.html.twig

Summary

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

{% block content %}{# loop for see all news #}
    {% for myNews in allNews %}
        <h3>
            {{ myNews.shortName }}
        </h3>
        {% for myAttributes in myNews.attributes %}
            <div>
                <br />
                {{ (myAttributes.name) }}
                <br />
                {{ (myAttributes.value) }}
                <br />
            </div>
        {% endfor %}
    {% endfor %}
{% endblock %}