From f5f161b536cc53e59d2ee6e40fa267dbf64b2967 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 2 May 2016 19:16:52 -0600 Subject: [PATCH] Fix for empty dropdown #522 --- CHANGELOG.md | 2 +- themes/grav/templates/pages.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2506c255..04eb2536 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ * Fixed UI issue with Backup / Update buttons positioning * Tweaked placeholders color in login/new user panels [#542](https://github.com/getgrav/grav-plugin-admin/issues/542) 1. [](#bugfix) - * + * Fix for showing empty drop-down with only one supported language [#522](https://github.com/getgrav/grav-plugin-admin/issues/522) # v1.1.0-beta.2 ## 04/27/2016 diff --git a/themes/grav/templates/pages.html.twig b/themes/grav/templates/pages.html.twig index 1816a8ab..d2ac706f 100644 --- a/themes/grav/templates/pages.html.twig +++ b/themes/grav/templates/pages.html.twig @@ -127,7 +127,6 @@ {% endif %} - {% if admin.multilang %}
+ {% if admin.languages_enabled|length > 1 %} @@ -146,7 +146,7 @@ {% endif %} {% endfor %} - + {% endif %}
{% endif %}