app/views/servers/check_installation.js.erb
<% if @server.up? %>
$("[data-server-status~=checking]").addClass("is-hidden");
$("[data-server-status~=connected]").removeClass("is-hidden");
<% else %>
$(".progress").val("<%= (@server.install_step - 1) * 25 %>")
<% for n in 1...@server.install_step %>
$(".step<%= n %>").addClass("is-success").find(".step-number").html("<%= j icon "check-circle-o" %>");
<% end %>
$(".step<%= @server.install_step %>").find(".step-number").html("<%= j icon "spinner fa-pulse fa-fw" %>");
new ServerPoller("<%= check_installation_server_path(@server) %>").poll();
<% end %>