anchor.diff:                </tr>
             <% end %>
         <% end %>
  -
       </table>
  -  <% end %>
  +
  +  <% end %>
  +<br/>
  +<b>Advertisement for teammates</b>
  +<br>
  +<% if @student.team.advertise_for_partner == true %>
  +    <%= @student.team.comments_for_advertisement%>
  +    &nbsp;&nbsp;&nbsp;&nbsp;
  +    <%= link_to 'Edit', :controller => 'advertise_for_partner', :action => 'edit', :team_id=>@student.team.id %>
  +    &nbsp;&nbsp;
  +    <%= link_to 'Delete', :controller => 'advertise_for_partner', :action => 'remove', :team_id=>@student.team.id %>
  +<% else %>
  +    <%= link_to 'Create', :controller => 'advertise_for_partner', :action => 'new', :team_id=>@student.team.id %>
  +
  +<% end %>
  +<br/>
   
   <%= render :partial => 'join_team_requests/list_sent',
              :locals =>{:teams_user_id=>params[:student_id],
  
positive.code:   <% end %>
  
      <% if @send_invs && @send_invs.length > 0 %>
      <div class = "exp">
        <table style="width:80%; margin-left: 95px">
          <tr><b>Sent Invitations</b></b></tr>
          <tr>
            <td><b>Username</b></td>
            <td><b>Full Name</b></td>
            <td><b>Email Address</b></td>
            <td><b>Status</b></td>
          </tr>
            <% for inv in @send_invs %>
              <tr>
  
negative.code:                 <% elsif inv.reply_status == 'D' %>
                    <td>Declined</td>
                  <% else %>
                    <td align = "center">Waiting for reply
                    &nbsp;&nbsp;<%= link_to "Retract", {:controller => 'invitation', :action => 'cancel', :inv_id => inv.id, :student_id => @student.id} %></td>
                  <% end %>
               </tr>
            <% end %>
        </table>
        </div>
      <% end %>
  <br/>
  
  <% if @student.team != nil && @student.assignment.max_team_size>1 %>
  
  
       <% if @student.team == nil %>
         <h3>Name team</h3>
         <%= form_tag :controller => 'student_teams', :action => 'create' do %>
           <%= hidden_field_tag 'student_id', @student.id %>
           <label for="team_name">Team name:</label>&nbsp;
           <%= text_field 'team', 'name' %>
           <%= submit_tag "Name team" %>
         <% end %>
       <% elsif !@student.team.full?%>
         <b>Invite people</b>
         <%= form_tag :controller => 'invitation', :action => 'create' do %>
           <%= hidden_field_tag 'team_id', @student.team.id %>
           <%= hidden_field_tag 'student_id', @student.id %>
  