anchor.diff:    </div>
     <div class="foldContent">
       <span class="none_text"> The following projects are subscribed by you, you may click it to view or edit the subscription: </span>
  -     <ul id="project_subscription_list">
  -      <%   @person.project_subscriptions.each do |ps|  %>
  -       <li id="<%= ps.project_id %>_li">
  -         <%= link_to_function ps.project.title,"$('select_project_subscription').value = #{ps.project.id};show_project_subscription();$('select_project_subscription').value =0;return false;"%>
  -       </li>
  -       <% end %>
  -     </ul>
  +    <ul id="project_subscription_list">
  +      <% project_subscriptions = @person.project_subscriptions %>
  +      <span class="none_text" id="no_project_text" style="display: <%= project_subscriptions.empty? ? 'block' : 'none' %>">No projects have been subscribed</span>
  +      <% project_subscriptions.each do |ps| %>
  +          <li id="<%= ps.project_id %>_li">
  +            <%= link_to_function ps.project.title, "$('select_project_subscription').value = #{ps.project.id};show_project_subscription();$('select_project_subscription').value =0;return false;" %>
  +          </li>
  +      <% end %>
  +    </ul>
       <br/>
        <span class="none_text"> You can subscribe other projects: </span> <br/>
       <%= select_tag :select_project_subscription,
  
positive.code:             <%= sub_form.hidden_field :project_id %>
              <br/>
  
              <p> Would you like to receive emails:
                <% Subscription::FREQUENCIES.each do |freq| %>
                    <%= sub_form.radio_button :frequency, freq %> <%= "#{freq.capitalize}" %>
                <% end %>
                <br/>
                Subscribe: <%= sub_form.check_box :_destroy, {:checked => !sub_form.object.marked_for_destruction?,:onclick=>"updateSubscribedProjectsList(this,#{project_subscription.project_id},'#{project_subscription.project.title}');"}, 0, 1 %>
              </p>
            </fieldset>
          </div>
  
negative.code:             }
          }else
           child.remove();
  
          //hide/display -no projects have been subscribed-
          if ($('project_subscription_list').getElementsByTagName('li').length > 0)
             $('no_project_text').style['display'] = 'none'
          else
             $('no_project_text').style['display'] = 'block'
      }
  
  </script>
  