Add user photos

This commit is contained in:
Matt Barringer 2013-01-08 07:38:24 +01:00
parent 6dd372511f
commit 6d415d44e3
17 changed files with 32339 additions and 76 deletions

View file

@ -5,6 +5,8 @@
= f.fields_for :person do |p|
= p.inputs :first_name, :last_name, :public_name
= p.input :company, :label => "Affiliation", :hint => "This could be a company, a user group, or nothing at all."
= image_tag current_user.person.avatar(:small)
= p.input :avatar, :label => "Picture", :hint => "Upload a new picture."
= p.input :biography, :input_html => {:rows => 5, "onkeyup" => "word_count(this, 'biography-count')"}, :for => :person
You have used
%span#biography-count #{current_user.person.biography_word_count}