Skip to content

Commit 6e6b7b7

Browse files
lsvNyholm
authored andcommitted
template block names (#272)
1 parent 05bce9b commit 6e6b7b7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Resources/views/WebUI/base.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
</div>
2727
</nav>
2828

29-
{% block body %}{% endblock %}
29+
{% block _translation_bundle_body %}{% endblock %}
3030

31-
{% block javascripts %}
31+
{% block _translation_bundle_js %}
3232
<script type="text/javascript" src="{{ asset("bundles/translation/js/webui.js") }}"></script>
3333
{% endblock %}
3434

Resources/views/WebUI/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "@Translation/WebUI/base.html.twig" %}
22
{% import _self as macro %}
33

4-
{% block body %}
4+
{% block _translation_bundle_body %}
55
<div class="container">
66
{% for cataloge in catalogues %}
77
<h3 class="mt-3">{{ localeMap[cataloge.locale] }}</h3>

Resources/views/WebUI/show.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "@Translation/WebUI/base.html.twig" %}
22
{% import _self as macro %}
33

4-
{% block body %}
4+
{% block _translation_bundle_body %}
55
<div class="container locales">
66
<h5 class="mt-2">Locales:</h5>
77
{% for locale in locales %}
@@ -63,7 +63,7 @@
6363
</div>
6464
{% endblock %}
6565

66-
{% block javascripts %}
66+
{% block _translation_bundle_js %}
6767
<script type="text/javascript">
6868
var editUrl = "{{ path('translation_edit', {configName: configName, locale:currentLocale,domain:currentDomain}) }}";
6969
</script>

0 commit comments

Comments
 (0)