Sha256: 422c45291411a076dbbb892b4f7375440059e4089d9fa5e66a5cd0a018a156e4

Contents?: true

Size: 1.3 KB

Versions: 27

Compression:

Stored size: 1.3 KB

Contents

#pools-show
  %h2 
    == Runtime Pool: #{@object.name}
  .actions

  %table.data-table
    - %w{ name app_name pool_type size }.each do |method|
      = data_row( method.humanize, @object.send( method ) )

    - unless @object.shared?
      - %w{ available borrowed minimum_instances maximum_instances }.each do |method|
        = data_row( method.humanize, @object.send( method ) )
     
  #evaluate
    %h3 Evaluate Ruby Against This Pool
    #results

    :javascript
      function evaluate_remote() {
        $.post(
          '#{url_for( object_action_path( @object, :evaluate ) )}', 
          $('#script_form').serialize(),
          function( response ) {
            result = response.result
            klass = 'result'
            if (response.exception) {
              klass += ' exception'
              result = response.exception + "\n    " + response.backtrace.join( "\n    " )
            } else {
              result = '' + response.result
            }
            $( '#results' ).append( $( '<pre/>' ).addClass( klass ).text( result ) )
          }
        )
      }

    %form#script_form
      %textarea{:name => 'script'}
        = @script
      %input{:type => 'button', :value => 'Evaluate', :onclick => "javascript:evaluate_remote()"}

  .controls
    = link_to collection_path( :pools ), '<< Back'

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
torquebox-backstage-0.3.1 views/pools/show.haml
torquebox-backstage-0.3.0 views/pools/show.haml
torquebox-backstage-0.2.1 views/pools/show.haml
torquebox-backstage-0.2.0 views/pools/show.haml
torquebox-backstage-0.1.2 views/pools/show.haml
torquebox-backstage-0.1.1 views/pools/show.haml
torquebox-backstage-0.1.0 views/pools/show.haml