<% all_count = @user.favorite_projects.visible.count%>
<div id="homepageLeftMenuForge">
  <ul class="user_sub_menu" id="user_projects_li">
    <%= render :partial => 'layouts/user_projects', :locals => {:projects => projects,:user => @user, :all_count => all_count, :page => 0} %>
  </ul>
</div>
<% if !projects.empty? %>
    <a class="user_navmorebox" href="javascript:void(0);" id="user_hide_project" onclick="leftProjectslistChange();">
      <span id="hide_show_projecticon" class="user_icons_closeclass"></span>
    </a>
<% end %>

<script>
    $(function() {
        $('#user_hide_project').hide();
    })
</script>