<% @assignment = Assignment.find(params[:id]) %>
<h1>Signup sheet for <%= @assignment.name %> assignment</h1>

<% if flash[:notice] %>
    <div class="flash_note"><%= flash[:notice] %></div>
<% end %>

<% @sign_up_topics = SignUpTopic.find(:all, :conditions => ['assignment_id = ?', @assignment.id]) %>
<% @slots_filled = SignUpTopic.find_slots_filled(@assignment.id)  %>
<% @slots_waitlisted = SignUpTopic.find_slots_waitlisted(@assignment.id) %>
<% @participants = SignedUpUser.find_team_participants(@assignment.id)  %>

<% if @sign_up_topics.size != 0 %>
    <table class="general">
      <tr><%= render :partial => '/sign_up_sheet/table_header' %></tr>

      <% i=1 %>
      <% for topic in @sign_up_topics %>
          <tr>
             <%= render :partial => '/sign_up_sheet/table_line', :locals => {:i=>i, :topic=>topic} %>
          </tr>
          <% i=i+1 %>
      <% end %>

    </table>

<% else %>
    <div class="flash_note">
      <%= "Signup topics have not yet been created." %>
    </div>
<% end %>

<% session[:return_to] = request.request_uri %>
<br/><br/>

<%= render :partial => '/sign_up_sheet/add_topics' %>
<a href="javascript:history.back()">Back</a>

<% @assignment = Assignment.find(params[:id]) %>
<h1>Signup sheet for <%= @assignment.name %> assignment</h1>

<% if flash[:notice] %>
    <div class="flash_note"><%= flash[:notice] %></div>
<% end %>

<% @sign_up_topics = SignUpTopic.find(:all, :conditions => ['assignment_id = ?', @assignment.id]) %>
<% @slots_filled = SignUpTopic.find_slots_filled(@assignment.id)  %>
<% @slots_waitlisted = SignUpTopic.find_slots_waitlisted(@assignment.id) %>
<% @participants = SignedUpUser.find_team_participants(@assignment.id)  %>

<% if @sign_up_topics.size != 0 %>
    <table class="general">
      <tr><%= render :partial => '/sign_up_sheet/table_header' %></tr>

      <% i=1 %>
      <% for topic in @sign_up_topics %>
          <tr>
             <%= render :partial => '/sign_up_sheet/table_line', :locals => {:i=>i, :topic=>topic} %>
          </tr>
          <% i=i+1 %>
      <% end %>

    </table>

<% else %>
    <div class="flash_note">
      <%= "Signup topics have not yet been created." %>
    </div>
<% end %>

<% session[:return_to] = request.fullpath %>
<br/><br/>

<%= render :partial => '/sign_up_sheet/add_topics' %>
<a href="javascript:history.back()">Back</a>

Remove deprecated request_uri method on response
Remove deprecated request_uri method on response
