From 83fc7d08bce04dd2ceaec1e34201cf1b73744f55 Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Thu, 21 Aug 2014 04:43:44 +0200 Subject: [PATCH] Only show request format dropdown when there are multiple formats --- Resources/views/layout.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 2ab14af..6aec117 100755 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -24,11 +24,13 @@ {% if 'json' in bodyFormats %}{% endif %} {% endif %} + {% if bodyFormats|length > 0 %} request format: {% if authentication %} {% if authentication.delivery == 'http' and authentication.type == 'basic' %}