# File lib/cloudmasterd.rb, line 274
    def status
      div.cloud! do
        largest_machine = @cloud_machines.max {|a,b| a.memory <=> b.memory }
        h2 "Available cloud memory: #{@memory}"
        h3 "Largest machine possible: #{largest_machine.memory}"

        table do
          tr do
            th 'Cloud Instance'
            th 'Memory'
            th 'Added Date'
          end
          @cloud_machines.each do |machine|
            tr do
              td @cloud_names[machine.name]
              td machine.memory
              unless machine.added_date == nil then
                td machine.added_date.strftime("%m/%d/%Y")
              else
                td 'Unknown'
              end
            end
          end
        end
      end

      div.machines! do
        @machines.keys.each do |email|
          div.user do
            h2 email
            table do
              tr do
                th 'Name'
                th 'Cloud Instance'
                th 'State'
                th 'Created Date'
                th ''
              end
              @machines[email].each do |machine|
                name = machine.hostname ? "#{machine.name} (#{machine.hostname})" : machine.name
                tr do
                  td do
                    if machine.repo
                      a name, :href=>"http://#{machine.repo}/genome/nodes/#{machine.name}.html"
                    else
                      a name
                    end
                  end
                  td @cloud_names[machine.cloud]
                  td machine.state
                  unless machine.created_date == nil then
                    td machine.created_date.strftime("%m/%d/%Y")
                  else
                    td 'Unknown'
                  end
                  td do
                    form(:method => :delete, :action => "/cloud" + R(Cloudmasterd::Controllers::Koan, "#{machine.name}").to_s) do
                      input :type => :submit, :value => 'Destroy'
                    end
                  end
                end
              end
            end
          end
        end
      end
    end