From 287cb3b500f2f05a0a3493e3e7943889fef73a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 20 Sep 2017 18:21:29 -0300 Subject: [PATCH] Port privileges/resource_limits to Twig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- templates/privileges/resource_limits.phtml | 16 ---------------- templates/privileges/resource_limits.twig | 13 +++++++++++++ 2 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 templates/privileges/resource_limits.phtml create mode 100644 templates/privileges/resource_limits.twig diff --git a/templates/privileges/resource_limits.phtml b/templates/privileges/resource_limits.phtml deleted file mode 100644 index 5bafa29066..0000000000 --- a/templates/privileges/resource_limits.phtml +++ /dev/null @@ -1,16 +0,0 @@ -
- -

- - - -

- - render( - array('limit' => $limit) - ); - ?> - -
- diff --git a/templates/privileges/resource_limits.twig b/templates/privileges/resource_limits.twig new file mode 100644 index 0000000000..dc1aaf988d --- /dev/null +++ b/templates/privileges/resource_limits.twig @@ -0,0 +1,13 @@ +
+ {% trans 'Resource limits' %} +

+ + <{% trans 'Note: Setting these options to 0 (zero) removes the limit.' %} + +

+ {% for limit in limits %} + {% include 'privileges/resource_limit_item.twig' with { + 'limit': limit + } only %} + {% endfor %} +