From 6925f865b421ff2c558c1de411a0db958638f732 Mon Sep 17 00:00:00 2001 From: Tim Buckley Date: Thu, 17 Mar 2016 14:02:15 -0600 Subject: [PATCH] Fix tab name indices in status template When the extra OpenStack Health link was removed in I293e326e45e1939dc57556d1477434cd1cfb56a2, the indices for the 'tabsName' array were not updated to reflect the change causing all links after 'Rechecks' to be off by one. This patch restores the correct index order to fix the issue. Change-Id: I4eea976c3fb1a0b9b75d38ba5895b7d5fa5b0de3 --- modules/openstack_project/templates/status/common.js.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/openstack_project/templates/status/common.js.erb b/modules/openstack_project/templates/status/common.js.erb index 508cfcb2c5..9074a19783 100644 --- a/modules/openstack_project/templates/status/common.js.erb +++ b/modules/openstack_project/templates/status/common.js.erb @@ -20,9 +20,9 @@ function header(activeTabName) { tabsName[0] = 'Status'; tabsLink[0] = '<%= @status_base_url %>'; tabsName[1] = 'Zuul'; tabsLink[1] = '<%= @status_base_url %>/zuul/'; tabsName[2] = 'Rechecks'; tabsLink[2] = '<%= @status_base_url %>/elastic-recheck/'; - tabsName[4] = 'Reviews'; tabsLink[3] = '<%= @status_base_url %>/reviews/'; - tabsName[5] = 'Bugday'; tabsLink[4] = '<%= @status_base_url %>/bugday/'; - tabsName[6] = 'OpenStack-Health'; tabsLink[5] = '<%= @status_base_url %>/openstack-health/'; + tabsName[3] = 'Reviews'; tabsLink[3] = '<%= @status_base_url %>/reviews/'; + tabsName[4] = 'Bugday'; tabsLink[4] = '<%= @status_base_url %>/bugday/'; + tabsName[5] = 'OpenStack-Health'; tabsLink[5] = '<%= @status_base_url %>/openstack-health/'; document.write( '