Skip to content

Instantly share code, notes, and snippets.

Created May 11, 2009 00:26
Show Gist options
  • Save anonymous/109801 to your computer and use it in GitHub Desktop.
Save anonymous/109801 to your computer and use it in GitHub Desktop.
= render :partial => 'users/activity_tabs', :locals => {:selected => 'Wall'}
.listing
- unless displaying_dashboard?
%div.wallsectionhead
%h3
Leave a Comment for
= @user.login
= spinner('wall')
.comment_box
- remote_form_for([@user, @user.comments.new], :before => "Element.show('spinner_wall')") do |f|
= image_submit_tag "ui/add_comment_button.png", :class => 'commentsubmit'
=# f.submit 'Comment'
= f.text_area :comment, :rows => 2, :cols => 40
= hidden_field_tag :target_type, 'user'
= hidden_field_tag :target_id, @user.id
ul#wall_comments.activity_list
%li{:class => 'activity'}
= render :partial => 'users/comments/comment', :collection => @user.comments
- if displaying_dashboard? && @user.comments.empty?
No one has left a message on your wall yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment