Avalanche Game prototype. Built with Rails.

agent_profile.html.erb 841B

    <h1 class="page-header"> <% if @user.username != nil %> Agent <%= @user.username %> Profile <% else %> Agent <%= @user.email %> Profile <% end %> </h1> <p><strong>Registration Date: </strong><%= @user.created_at%></p> <p><strong>Missions Completed: </strong><%= @user.completed_missions_count %> <h3>Mission List</h3> <table class="table table-hover"> <% @user.mission_list.each do |invite| %> <tr> <td ><h4><%= invite.mission_agent.mission.title %></h4></td> <td class="span4" style="padding-top: 16px;"> <%= render '/missions/mission_agent_invite_status', :invite => invite, :margin => false %> </td> <td class="span3" style="padding-top: 16px;"> <%= render '/missions/mission_status', :mission => invite.mission_agent.mission, :big => false, :margin => false %> </td> </tr> <% end %> </table>