<h6>About <%= @app.name %></h6>
<p><%= @app.default_description %></p>

<% unless @app.video_embed_code.nil? && @app.picture_gallary.nil? %>
  <h6><%= @app.name %> Media</h6>

  <div class="vid-embed-block">
    <%= raw @app.video_embed_code %>
  </div>

  <div class="gallery-block">
    <%= @app.picture_gallary %>
  </div>
<% end %>

<h6><%= @app.name %> Deployment Checklist</h6>
<div class="task-list">
  <p>
  The following items will need to be accomplished by teams
  as part of deployment.
  </p>
  <%= @app.task_list %>
</div>

<h6>About <%= @app.name %></h6>
<p><%= @app.default_description %></p>

<% unless @app.video_embed_code.nil? && @app.picture_gallary.nil? %>
  <h6><%= @app.name %> Media</h6>

  <div class="vid-embed-block">
    <%= raw @app.video_embed_code %>
  </div>

  <div class="gallery-block">
    <%= @app.picture_gallary %>
  </div>
<% end %>
<h6>Brigades working on this application</h6>
  <table class="all-cities" cellpadding="4" id="sortable">
    <thead>
      <tr>
        <th>Brigade</th>
        <th width="17%">Status</th>
        <th>Location</th>
        <th>Action</th>
      </tr>
    </thead>
    <% @app.deployed_applications.each do |deployed_application| %>
    <tr class="<%= cycle "odd", "even" %>", id="<%= "deployed_application_#{deployed_application.id}" %>">
      <% if deployed_application.brigade_name %>
        <td><%= link_to deployed_application.brigade_name, brigade_url(deployed_application.brigade) %></td>
      <% end %>
      <td>
        <% if deployed_application.deployed %>
          Deployed
        <% else %>
          In Progress
        <% end %>
      </td>
      <td><%= link_to deployed_application.location_name, location_deployed_applications_url(deployed_application.location) if Location.find_by_id(deployed_application.location_id).is_a?(Location) %></td>
      <td><%= link_to 'Show App', deployed_application_url(deployed_application), :class => "show-button" %></td>
    </tr>
    <% end %>
  </table>

<h6><%= @app.name %> Deployment Checklist</h6>
<div class="task-list">
  <p>
  The following items will need to be accomplished by teams
  as part of deployment.
  </p>
  <%= @app.task_list %>
</div>

Change app view to show deployed applications on page
Change app view to show deployed applications on page
