summaryrefslogtreecommitdiff
path: root/distil_ui
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-05-26 00:11:14 +0000
committerGerrit Code Review <review@openstack.org>2017-05-26 00:11:14 +0000
commitb1aad7dd19033af6aca3e6ae1d6ba567e0f090e5 (patch)
tree64ee8f68036333b44752e5053cff81035a4c3790 /distil_ui
parent4d2507e41b8aa7cd0be1bc446bff072354d35d4d (diff)
parent2f5333889b5f0feb67d03095941f2d37d4ed9f7c (diff)
Merge "Fix wrong host of resource URL"
Diffstat (limited to 'distil_ui')
-rw-r--r--distil_ui/content/billing/templates/billing/index.html10
1 files 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 @@
172 var row_class = i%2==0? 'odd':'even'; 172 var row_class = i%2==0? 'odd':'even';
173 var link = "#"; 173 var link = "#";
174 if (resource_type in link_mapping){ 174 if (resource_type in link_mapping){
175 link = "http://127.0.0.1:9977/project" + link_mapping[resource_type] + res_cost_details[i]['resource_id']; 175 link = "/project" + link_mapping[resource_type] + res_cost_details[i]['resource_id'];
176 } 176 }
177 if (resource_type == 'Network'){ 177 if (resource_type == 'Network'){
178 link += '/detail'; 178 link += '/detail';
179 } 179 }
180 180
181 $('#service_details tbody').append('<tr class='+row_class+'><td><a href="' + link +'">' + res_cost_details[i]['resource_id'] + '</a></td><td>'+res_cost_details[i]['resource']+'</td><td>'+res_cost_details[i]['volume']+'</td><td>'+res_cost_details[i]['unit']+'</td><td>'+res_cost_details[i]['rate']+'</td><td>'+res_cost_details[i]['cost']+'</td></tr>'); 181 $('#service_details tbody').append('<tr class='+row_class+'><td><a href="' + link +'">' + res_cost_details[i]['resource_id'] + '</a></td><td>'+res_cost_details[i]['resource']+'</td><td>'+res_cost_details[i]['volume']+'</td><td>'+res_cost_details[i]['unit']+'</td><td>'+res_cost_details[i]['rate']+'</td><td>'+res_cost_details[i]['cost']+'</td></tr>');
182 } 182 }