Optimized templates

This commit is contained in:
Kevin Frantz 2018-09-14 16:31:25 +02:00
parent 37ce7c399c
commit f8138fb361
5 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1 @@
{{ source.name }}

View File

@ -0,0 +1 @@
{% include "source/content/name." ~ app.request.requestFormat ~ ".twig" with {'source':source.userSource}%}

View File

@ -1,4 +1,5 @@
{% extends "frames/default.html.twig" %}
{% extends "source/source.html.twig" %}
{% block content %}
{{ source.name }}
<h1>{% trans %} Name {% endtrans %}</h1>
{% include "source/content/name." ~ app.request.requestFormat ~ ".twig" %}
{% endblock %}

View File

@ -0,0 +1,7 @@
{% extends "frames/default.html.twig" %}
{% block title %}
{% trans %}
Source
{% endtrans %}
#{{ source.id }}
{% endblock %}

View File

@ -0,0 +1,5 @@
{% extends "source/source.html.twig" %}
{% block content %}
<h1>{% trans %} User {% endtrans %}</h1>
{% include "source/content/user." ~ app.request.requestFormat ~ ".twig" %}
{% endblock %}