Skip to content

Commit

Permalink
Refactored the template code related to macros
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Aug 31, 2015
1 parent da04216 commit f481eef
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions app/Resources/views/admin/blog/edit.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% extends 'admin/layout.html.twig' %}

{#
Import macros used for displaying flash messages.
See http://twig.sensiolabs.org/doc/tags/import.html
#}
{% import 'helper/messages.html.twig' as helper %}

{% block body_id 'admin_post_edit' %}

{% block main %}
Expand Down
6 changes: 6 additions & 0 deletions app/Resources/views/admin/blog/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% extends 'admin/layout.html.twig' %}

{#
Import macros used for displaying flash messages.
See http://twig.sensiolabs.org/doc/tags/import.html
#}
{% import 'helper/messages.html.twig' as helper %}

{% block body_id 'admin_post_index' %}

{% block main %}
Expand Down
6 changes: 0 additions & 6 deletions app/Resources/views/admin/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
#}
{% extends 'base.html.twig' %}

{#
Import macros used for displaying flash messages.
See http://twig.sensiolabs.org/doc/tags/import.html
#}
{% import 'macro/messages.html.twig' as helper %}

{% block header_navigation_links %}
<li>
<a href="{{ path('admin_post_index') }}">
Expand Down

0 comments on commit f481eef

Please sign in to comment.