From 2f5333889b5f0feb67d03095941f2d37d4ed9f7c Mon Sep 17 00:00:00 2001 From: Fei Long Wang Date: Tue, 23 May 2017 23:16:36 +1200 Subject: [PATCH] Fix wrong host of resource URL Change-Id: I43bbc8d066cd32789dc3e33c0e06d04d0ead3db6 --- distil_ui/content/billing/templates/billing/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/distil_ui/content/billing/templates/billing/index.html b/distil_ui/content/billing/templates/billing/index.html index 7f48464..8dea152 100644 --- a/distil_ui/content/billing/templates/billing/index.html +++ b/distil_ui/content/billing/templates/billing/index.html @@ -172,11 +172,11 @@ var row_class = i%2==0? 'odd':'even'; var link = "#"; if (resource_type in link_mapping){ - link = "http://127.0.0.1:9977/project" + link_mapping[resource_type] + res_cost_details[i]['resource_id']; - } - if (resource_type == 'Network'){ - link += '/detail'; - } + link = "/project" + link_mapping[resource_type] + res_cost_details[i]['resource_id']; + } + if (resource_type == 'Network'){ + link += '/detail'; + } $('#service_details tbody').append('' + res_cost_details[i]['resource_id'] + ''+res_cost_details[i]['resource']+''+res_cost_details[i]['volume']+''+res_cost_details[i]['unit']+''+res_cost_details[i]['rate']+''+res_cost_details[i]['cost']+''); }