Avalanche Game prototype. Built with Rails.

_mission_agent_invite_status.html.erb 482B

    <% if invite.status == 'Accepted' %> <% @status_label = 'label-success'%> <% elsif invite.status == 'Failed' %> <% @status_label = 'label-important'%> <% elsif invite.status == 'Completed' %> <% @status_label = 'label-success'%> <% else%> <% @status_label = 'label-default'%> <% end %> <strong>Agent Objective Status:</strong> <span class="label <%= @status_label %>" style="<% if margin == true %> margin-top: 8px; margin-right: 10px<% end %>"> <%= invite.status %> </span>