<% commands.order('created_at desc').pending.each do |command| %> <% end %>
Device Commands Status Created at Action
<%mac = ap_info(command.router_inventories.first)%> <%= mac[0] %>
<%= mac[1] if mac[1].present? %>
<%= command.commands %> <%= command.status %> <%= command.created_at.strftime('%d %b %Y-%H:%M (UTC)')%> <%= link_to 'Destroy', command_path(:id => command.id), :method => :delete,:class=>"label label-danger", :confirm => "Are you sure you want to delete?" %>
<% commands.not_pending.each do |command| %> <%end%>
Device Commands Status Last updated at Action
<%= ap_name(command.router_inventories.first)%> <%= command.commands %> <%= command.status %> <%= command.updated_at.strftime('%d %b %Y-%H:%M (UTC)')%> <% if command.success? %> <%= link_to 'Result', "javascript:void(0);", :id=>"modal", :data=> command.result, :command=>command.commands,:class=>"text-success" %> <% end %>