<% nodes_info.each do |node_info| %> <% end %>
Node name Boot time Updated date Kill Bill version Dependencies Plugins
<%= node_info.node_name %> <% unless node_info.boot_time.blank? %> <%= time_ago_in_words(DateTime.parse(node_info.boot_time)) %> ago <% end %> <% unless node_info.last_updated_date.blank? %> <%= time_ago_in_words(DateTime.parse(node_info.last_updated_date)) %> ago <% end %> <%= node_info.kb_version %>
  • API: <%= node_info.api_version %>
  • Plugin API: <%= node_info.plugin_api_version %>
  • Platform: <%= node_info.platform_version %>
  • Commons: <%= node_info.common_version %>
<% unless (node_info.plugins_info || []).empty? %>
    <% node_info.plugins_info.each do |plugin_info| %>
  • <%= plugin_info.plugin_name %> <%= plugin_info.version %> <%= plugin_info.state %> <% if plugin_info.state == 'RUNNING' %> <%= link_to ''.html_safe, plugin_stop_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Stop', :remote => true, :class => 'plugin-link' %> <%= link_to ''.html_safe, plugin_restart_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Restart', :remote => true, :class => 'plugin-link' %> <% elsif plugin_info.state == 'INSTALLED' || plugin_info.state == 'STOPPED' %> <%= link_to ''.html_safe, plugin_start_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Start', :remote => true, :class => 'plugin-link' %> <% end %> <% unless plugin_info.version.nil? %> <%= link_to ''.html_safe, plugin_uninstall_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Uninstall', :remote => true, :class => 'plugin-link' %> <% end %>
  • <% end %>
<% end %>
<%= javascript_tag do %> $(document).ready(function() { $('#nodes-table').dataTable({ "dom": "t", "paging": false, "ordering": false }); }); <% end %>