From 86d13968d889a9d6293a517390d7f53044f5e567 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Mon, 9 Sep 2019 17:28:46 +0300 Subject: [PATCH] Remove unused 'not_list' template argument This is unused in Horizon itself and I didn't find any references in plugins. Undefined variable leads to errors during render in a debug mode. Partial-Bug: #1720893 Change-Id: I9de0b24adfeb48f5fe14676aaec6b17b8eb52207 --- .../templates/profiler/_mode_picker.html | 34 ++--- .../templates/header/_context_selection.html | 63 ++++------ .../header/_keystone_provider_selection.html | 12 +- .../templates/header/_region_selection.html | 12 +- .../templates/header/_user_menu.html | 118 ++++++++---------- 5 files changed, 99 insertions(+), 140 deletions(-) diff --git a/openstack_dashboard/contrib/developer/profiler/templates/profiler/_mode_picker.html b/openstack_dashboard/contrib/developer/profiler/templates/profiler/_mode_picker.html index 5daf5d35eb..2bcc706964 100644 --- a/openstack_dashboard/contrib/developer/profiler/templates/profiler/_mode_picker.html +++ b/openstack_dashboard/contrib/developer/profiler/templates/profiler/_mode_picker.html @@ -1,21 +1,13 @@ -{% if not_list %} - -{% else %} - -{% endif %} \ No newline at end of file + \ No newline at end of file diff --git a/openstack_dashboard/templates/header/_context_selection.html b/openstack_dashboard/templates/header/_context_selection.html index 6420003db8..9177168d6c 100644 --- a/openstack_dashboard/templates/header/_context_selection.html +++ b/openstack_dashboard/templates/header/_context_selection.html @@ -1,42 +1,33 @@ {% load context_selection %} -{% if not_list %} - -{% else %} - -{% endif %} - + {% comment %} + is_multi_region is only available through an assignment tag pulled in through context_selection + {% endcomment %} + {% is_multi_region as multi_region %} + {% if multi_region %} +
  • + {% show_region_list %} +
  • + {% endif %} + + diff --git a/openstack_dashboard/templates/header/_keystone_provider_selection.html b/openstack_dashboard/templates/header/_keystone_provider_selection.html index 9737e0f88d..bda9c4c6a9 100644 --- a/openstack_dashboard/templates/header/_keystone_provider_selection.html +++ b/openstack_dashboard/templates/header/_keystone_provider_selection.html @@ -1,11 +1,3 @@ -{% if not_list %} - -{% else %} - -{% endif %} \ No newline at end of file + diff --git a/openstack_dashboard/templates/header/_region_selection.html b/openstack_dashboard/templates/header/_region_selection.html index b53787c33e..9652133516 100644 --- a/openstack_dashboard/templates/header/_region_selection.html +++ b/openstack_dashboard/templates/header/_region_selection.html @@ -1,11 +1,3 @@ -{% if not_list %} - -{% else %} - -{% endif %} \ No newline at end of file + diff --git a/openstack_dashboard/templates/header/_user_menu.html b/openstack_dashboard/templates/header/_user_menu.html index ac66161b1f..66c0cacc74 100644 --- a/openstack_dashboard/templates/header/_user_menu.html +++ b/openstack_dashboard/templates/header/_user_menu.html @@ -1,76 +1,68 @@ {% load i18n %} {% load themes %} -{% if not_list %} - -{% else %} - -{% endif %} + {% endif %} +
  • +
  • + + + {% trans "Sign Out" %} + +
  • + +