e70acd5c3b
This little abstraction layer made it a bit easier to add a different title to a Note or Actor Feed Collection template, from whichever controller that uses it. Please, bear in mind, that abstract templates such as those found in Components\Collection, may act in a very 'declarative' way upon using them. This makes it difficult to dynamically choose what type of header is used without undergoing a mining operation in the likes of a pyramid of doom. Hence, this _little_ change.
14 lines
306 B
Twig
14 lines
306 B
Twig
{% extends '/collection/notes.html.twig' %}
|
|
|
|
{% block title %}
|
|
{% if page_title is defined %}
|
|
{{ page_title }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
{% include 'cards/blocks/profile.html.twig' with { profile_card_type: 'main' } %}
|
|
<hr>
|
|
{{ parent() }}
|
|
{% endblock body %}
|