Sha256: 2021dc69fab9e11980ebf8d725ca13055323a74312843008c0b5d38eae0997f3

Contents?: true

Size: 414 Bytes

Versions: 73

Compression:

Stored size: 414 Bytes

Contents

- if @profile.image_file_name
  = image_tag @profile.image.url(:thumb)
- else
  - if can? :edit, @profile
    - link_to 'Upload a photo', user_profile_path(@user)
%p
  %b First name:
  = @profile.first_name
%p
  %b Last name:
  = @profile.last_name
%p
  %b Alias:
  = @profile.alias
%p
  %b About me:
  = @profile.about_me

- if current_user.try(:id) == @user.id
  = link_to 'Edit', edit_user_profile_path(@user)

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
wheels-0.0.17 app/views/profiles/show.html.haml
wheels-0.0.16 app/views/profiles/show.html.haml
wheels-0.0.15 app/views/profiles/show.html.haml
wheels-0.0.14 app/views/profiles/show.html.haml
wheels-0.0.13 app/views/profiles/show.html.haml
wheels-0.0.11 app/views/profiles/show.html.haml
wheels-0.0.10 app/views/profiles/show.html.haml
wheels-0.0.9 app/views/profiles/show.html.haml
wheels-0.0.8 app/views/profiles/show.html.haml
wheels-0.0.6 app/views/profiles/show.html.haml
wheels-0.0.5 app/views/profiles/show.html.haml
wheels-0.0.4 app/views/profiles/show.html.haml
wheels-0.0.3 app/views/profiles/show.html.haml