Skip to content

WebUI - Template block names #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Resources/views/WebUI/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</div>
</nav>

{% block body %}{% endblock %}
{% block _translation_bundle_body %}{% endblock %}

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

Expand Down
2 changes: 1 addition & 1 deletion Resources/views/WebUI/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "@Translation/WebUI/base.html.twig" %}
{% import _self as macro %}

{% block body %}
{% block _translation_bundle_body %}
<div class="container">
{% for cataloge in catalogues %}
<h3 class="mt-3">{{ localeMap[cataloge.locale] }}</h3>
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/WebUI/show.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "@Translation/WebUI/base.html.twig" %}
{% import _self as macro %}

{% block body %}
{% block _translation_bundle_body %}
<div class="container locales">
<h5 class="mt-2">Locales:</h5>
{% for locale in locales %}
Expand Down Expand Up @@ -63,7 +63,7 @@
</div>
{% endblock %}

{% block javascripts %}
{% block _translation_bundle_js %}
<script type="text/javascript">
var editUrl = "{{ path('translation_edit', {configName: configName, locale:currentLocale,domain:currentDomain}) }}";
</script>
Expand Down