Browse Source

Fix wrong host of resource URL

Change-Id: I43bbc8d066cd32789dc3e33c0e06d04d0ead3db6
Fei Long Wang 1 year ago
parent
commit
2f5333889b
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      distil_ui/content/billing/templates/billing/index.html

+ 5
- 5
distil_ui/content/billing/templates/billing/index.html View File

@@ -172,11 +172,11 @@
172 172
                     var row_class = i%2==0? 'odd':'even';
173 173
                     var link = "#";
174 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'];
176
-	                }
177
-	                if (resource_type == 'Network'){
178
-	                    link += '/detail';
179
-	                }
175
+                        link = "/project" + link_mapping[resource_type] + res_cost_details[i]['resource_id'];
176
+                    }
177
+                    if (resource_type == 'Network'){
178
+                        link += '/detail';
179
+                    }
180 180
 
181 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
                 }

Loading…
Cancel
Save