Project

General

Profile

« Previous | Next » 

Revision a89c40ce

Added by Ohad Levy almost 12 years ago

  • ID a89c40ce147b83fe3398438dfea56ad70278db11

[refactor] - simple method to display ec2 instance name, instead of using tags everywhere

View differences:

app/views/compute_resources_vms/index/_ec2.html.erb
</tr>
<% @compute_resource.vms.each do |vm| -%>
<tr>
<td><%= link_to_if_authorized vm.tags["Name"], hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity) %></td>
<td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity) %></td>
<td><%= vm.dns_name %></td>
<td><%= vm.flavor_id %></td>
<td <%= vm_power_class(vm.ready?)%>> <%= vm_state(!vm.ready?) %> </td>

Also available in: Unified diff