- @section = 'my_profile' =render :partial => "users/dashboard_nav" #yui-main .yui-b .box %h3= random_greeting(@user) -if @user.pending_friendships.any? %p=link_to "#{image_tag 'icons/user_add.png', :plugin => 'community_engine'} "+:you_have_pending_friendship_requests.l, pending_user_friendships_path(@user) -if @network_activity.empty? && @recommended_posts.empty? %p =:this_is_your_dashboard.l %br =:dashboard_friends.l :site => AppConfig.community_name %p =:to_start_adding_friends.l =link_to :browse_all_members.l, users_path %p =link_to :update_profile_and_tag_yourself.l, edit_user_path(current_user) =:to_get_recommended_content_on_your_dashboard.l -unless @network_activity.empty? %h2=:activity_from_your_network.l .box.fresh =render :partial => "activities/activity", :collection => @network_activity %h6.all= link_to :see_all_activity.l, network_user_activities_path(current_user) -unless @recommended_posts.empty? %h3=:recommended_posts.l #posts %ul -@recommended_posts.each do |post| %li = link_to( "#{post.tag_for_first_image_in_body} #{truncate(post.display_title, 75)} #{ truncate_words(post.post, 35, '...' )} (:by.l #{post.user.login})", user_post_path(post.user, post), :title => ":by.l #{post.user.login}" )