diff --git a/Resources/views/Macros/macros.html.twig b/Resources/views/Macros/macros.html.twig index 0a9629de..6892bafd 100644 --- a/Resources/views/Macros/macros.html.twig +++ b/Resources/views/Macros/macros.html.twig @@ -1,5 +1,5 @@ {% macro status_btn(status, text, small = false) %} - {% spaceless %} + {% apply spaceless %} {% if status == 10 %} @@ -19,11 +19,11 @@ {% endif %} - {% endspaceless %} + {% endapply %} {% endmacro %} {% macro status_alert(status, text) %} - {% spaceless %} + {% apply spaceless %} {% if status == 10 %} @@ -46,11 +46,11 @@ {% endif %} - {% endspaceless %} + {% endapply %} {% endmacro %} {% macro priority_btn(priority, text, small = false) %} - {% spaceless %} + {% apply spaceless %} {% if priority <= 20 %} {% elseif priority == 21 %} @@ -60,11 +60,11 @@ {% endif %} - {% endspaceless %} + {% endapply %} {% endmacro %} {% macro priority_alert(priority, text) %} - {% spaceless %} + {% apply spaceless %} {% if priority <= 20 %} @@ -77,12 +77,12 @@ class="glyphicon glyphicon-star">  {{ 'MESSAGE_PRIORITY_CHANGED'|trans({'%priority%': text|upper }, 'HackzillaTicketBundle') }} {% endif %} - {% endspaceless %} + {% endapply %} {% endmacro %} {# Source: http://stackoverflow.com/a/15303004/157656 #} {% macro bytesToSize(bytes) %} - {% spaceless %} + {% apply spaceless %} {% set kilobyte = 1024 %} {% set megabyte = kilobyte * 1024 %} {% set gigabyte = megabyte * 1024 %} @@ -99,5 +99,5 @@ {% else %} {{ (bytes / terabyte)|number_format(2, '.') ~ ' TB' }} {% endif %} - {% endspaceless %} + {% endapply %} {% endmacro %} diff --git a/composer.json b/composer.json index cf181082..036b470a 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ }, "conflict": { "phpunit/phpunit": "<5.4.3", - "twig/twig": "<1.34" + "twig/twig": "<2.9" }, "suggest": { "friendsofsymfony/user-bundle": "In order to ease user management",