Sha256: fcd409c7f34c61bdaeade0a27bf63fe284f5e6a57745add5737a73c1be29605e

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

 <%
  rows = @machines.each do |machine|
    machine[11] = link_to image_tag('papertrail_machine.png',
                                    class: 'action',
                                    title: "View machine(id: #{machine[0]}, server:#{machine[1].blank? ? machine[2] : machine[1]}) log in Papertrail"),
                                    machine[11], { target: '_blank', class: "papertrail", id: machine[0] }
    machine[11] << "&nbsp;&nbsp;".html_safe
    machine[11] << (link_to image_tag('papertrail_machine_runner.png',
                                      class: 'action',
                                      title: "View machine(id: #{machine[0]}, server:#{machine[1].blank? ? machine[2] : machine[1]}) runner log in Papertrail"),
                                      machine[12], { target: '_blank', class: "papertrail", id: machine[0] })
    machine[11] << "&nbsp;&nbsp;".html_safe
    unless machine[10]
      machine[11] << (link_to image_tag('terminate.png',
                                        class: 'action',
                                        title: "Mark machine(id: #{machine[0]}, server:#{machine[1].blank? ? machine[2] : machine[1]}) down"),
                                        "#", { class: "terminate", id: machine[0] })
    end
    machine.delete_at(12)
    machine.delete_at(10)
  end
%>
<%= raw rows %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
naf-1.1.4 app/views/naf/machines/index.json.erb
naf-1.1.3 app/views/naf/machines/index.json.erb
naf-1.1.2 app/views/naf/machines/index.json.erb
naf-1.1.1 app/views/naf/machines/index.json.erb
naf-1.1.0 app/views/naf/machines/index.json.erb