Avalanche Game prototype. Built with Rails.

mission_control.html.erb 1.3KB

    <div class="page-header"> <h1> Mission Control <small>(<%= @mission.title %>)</small> <% if @mission.status == 'Initializing' %> <% @status_label = 'label'%> <% end%> <% if @mission.status == 'Launched' %> <% @status_label = 'label-success'%> <% end%> <span class="label <%= @status_label %> pull-right" style="margin-top: 2px;"><h4><%= @mission.status %><h4></span> </h1> </div> <p id="notice"><%= notice %></p> <p> <strong>Owner: </strong> <%= @mission.owner.username %> <p> <strong>Description:</strong> <%= @mission.description %> </p> <p> <strong>Status:</strong> <%= @mission.status %> </p> <p> <strong>Agent search start:</strong> <%= @mission.agent_search_start %> </p> <p> <strong>Agent search end:</strong> <%= @mission.agent_search_end %> </p> <% @agent_number = 1 %> <% @mission.mission_agents.each do |agent| %> <div class="well well-small"> <h3>Agent <%= @agent_number %></h3> <% if agent.user != nil %> Name: <%= agent.user.email %><br> Status: <% agent.mission_agent_invites.each do |invite| %> <% if invite.user = agent.user %> <%= invite.status %> <% end %> <% end %> <% else %> Agent not found! <% end %> </div> <% @agent_number = @agent_number + 1 %> <% end %> <%= link_to 'Edit', edit_mission_path(@mission) %> | <%= link_to 'Back', missions_path %>