Avalanche Game prototype. Built with Rails.

show.html.erb 792B

    <div class="page-header"> <h1> Mission Details <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> <%= @mission.description %> </p> <p> <strong>Mission Director: </strong> <%= @mission.owner.username %> </p> <% @step = 1 %> <% if @agent.length > 0 %> <% @agent.first.mission_agent_steps.each do |step| %> <div> <h3>Step <%= @step %></h3> <%= step.description %> <div> <% @step = @step + 1 %> <% end %> <% end %> <hr> <%= link_to 'Back', missions_path %>