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/show/_ec2.html.erb
<% title @vm.tags["Name"] %>
<% title @vm %>
<div class='span12'>
<table class="table table-bordered table-striped">
<tr><th colspan="2">Properties</th></tr>
<%= prop :availability_zone %>
<%= prop :public_ip_address %>
<%= prop :dns_name %>
<%= prop :dns_name, "DNS name" %>
<%= prop :private_ip_address %>
<%= prop :private_dns_name %>
<%= prop :kernel_id %>
<%= prop :state %>
<%= prop :created_at %>
<%= prop :created_at, "Created" %>
<%= prop :root_device_type %>
<%= prop :image_id %>
<%= prop :flavor_id %>

Also available in: Unified diff