mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 06:27:24 +01:00
Optimized templates
This commit is contained in:
parent
37ce7c399c
commit
f8138fb361
1
application/templates/source/content/name.html.twig
Normal file
1
application/templates/source/content/name.html.twig
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ source.name }}
|
1
application/templates/source/content/user.html.twig
Normal file
1
application/templates/source/content/user.html.twig
Normal file
@ -0,0 +1 @@
|
|||||||
|
{% include "source/content/name." ~ app.request.requestFormat ~ ".twig" with {'source':source.userSource}%}
|
@ -1,4 +1,5 @@
|
|||||||
{% extends "frames/default.html.twig" %}
|
{% extends "source/source.html.twig" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ source.name }}
|
<h1>{% trans %} Name {% endtrans %}</h1>
|
||||||
|
{% include "source/content/name." ~ app.request.requestFormat ~ ".twig" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
7
application/templates/source/source.html.twig
Normal file
7
application/templates/source/source.html.twig
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{% extends "frames/default.html.twig" %}
|
||||||
|
{% block title %}
|
||||||
|
{% trans %}
|
||||||
|
Source
|
||||||
|
{% endtrans %}
|
||||||
|
#{{ source.id }}
|
||||||
|
{% endblock %}
|
5
application/templates/source/user.html.twig
Normal file
5
application/templates/source/user.html.twig
Normal 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 %}
|
Loading…
Reference in New Issue
Block a user