anchor.diff:      <!-- createModalBox(<%= team.team_name %>) disabled if no submission present -->
       <!-- this assumes that submission has valid poster and video links -->
       <h3>
  -      <% submission_local = Submission.where(team_id: team.id)[-1] %>
  -      <% if (submission_local) %>
  +      <% submissions = Submission.where(team_id: team.id).order(:milestone_id)%>
  +      <% if not submissions.length == 0 %>
           <button class="button button_team" id="button_<%= team.id %>">
             <%= idx + 1 %>. <strong><%= team.team_name %></strong>
           </button>
  
positive.code:       <hr>
        <h4 class="text-muted">Submission Links:</h4>
        <br>
        <% if (submission_local) %>
          <% if (!submission_local.video_link.blank?) %>
            <div class="col-md-6">
              <a role="button" class="button button_video" href="<%= Submission.where(team_id: team.id)[-1].video_link %>">
                Watch Project Video
              </a>
            </div>
          <% else %>
            <div>Video link is not submitted / not available.</div>
          <% end %>
          <% if (!submission_local.poster_link.blank?) %>
            <div class="col-md-6">
              <a role="button" class="button button_video" href="<%= Submission.where(team_id: team.id)[-1].poster_link %>">
                View Project Poster
              </a>
            </div>
  
negative.code:   <div class="col-md-4 portfolio-item">
      <a role="button" onclick="createModalBox(<%= team.team_name %>)" id="button_<%= team.team_name %>">
        <% if !team.poster_link.blank? %>
          <%= link_to image_tag(team.poster_link, size: "200", alt: "Team's Poster Link is not in image form",
            title: "Click to view an enlarged version of this image.", id: "img_#{team.team_name}", onerror: "onerror=null;replaceImg(this, '#{team.project_level}')"), team.poster_link %>
        <% elsif locals[:selected_type] == 'Vostok' %>
          <%= image_tag("Vostok_Icon.jpg", size: "200", class: 'img-rounded inactive_link') %>
  