Skip to content

Commit f481eef

Browse files
committed
Refactored the template code related to macros
1 parent da04216 commit f481eef

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

app/Resources/views/admin/blog/edit.html.twig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{% extends 'admin/layout.html.twig' %}
22

3+
{#
4+
Import macros used for displaying flash messages.
5+
See http://twig.sensiolabs.org/doc/tags/import.html
6+
#}
7+
{% import 'helper/messages.html.twig' as helper %}
8+
39
{% block body_id 'admin_post_edit' %}
410

511
{% block main %}

app/Resources/views/admin/blog/index.html.twig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{% extends 'admin/layout.html.twig' %}
22

3+
{#
4+
Import macros used for displaying flash messages.
5+
See http://twig.sensiolabs.org/doc/tags/import.html
6+
#}
7+
{% import 'helper/messages.html.twig' as helper %}
8+
39
{% block body_id 'admin_post_index' %}
410

511
{% block main %}

app/Resources/views/admin/layout.html.twig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
#}
88
{% extends 'base.html.twig' %}
99

10-
{#
11-
Import macros used for displaying flash messages.
12-
See http://twig.sensiolabs.org/doc/tags/import.html
13-
#}
14-
{% import 'macro/messages.html.twig' as helper %}
15-
1610
{% block header_navigation_links %}
1711
<li>
1812
<a href="{{ path('admin_post_index') }}">

0 commit comments

Comments
 (0)