Sha256: 243500ab29afd6990806c6caff320b06a5efb8c3531add39ad6e59a455c8dcea

Contents?: true

Size: 1.06 KB

Versions: 193

Compression:

Stored size: 1.06 KB

Contents

- profile ||= user_profile

.row
  .col.s4
    %ul
      %li
        <b>Email:</b> #{link_to profile.email, user_profile_path(profile)}
        = link_to '[edit]', edit_user_profile_path( profile )
      %li <b>Name:</b> #{profile.name}
      %li <b>Role:</b> #{profile.role_name}
      %li <b>User.email:</b> #{profile.user ? profile.user.email : nil}
      %li <b>City:</b> #{profile.current_city ? profile.current_city.name : nil}
      %li
        <b>Profile Photo:</b>
        = image_tag profile.profile_photo.photo.url(:thumb) rescue nil

  .col.s8
    %h5 Shared galleries
    - profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
      &gt; #{link_to g.name, gallery_path(g.slug)} <br />
      = render 'meta', :item => g
    <hr />

    %h5 Newsitems
    - profile.newsitems.each do |n|
      = render 'ish_manager/newsitems/item', n: n, profile_id: profile.id
    <hr />

    %h5 Bookmarked Locations (#{profile.bookmarked_locations.length})
    %ul.browser-default
      - profile.bookmarked_locations.each do |n|
        %li
          = n.slug


Version data entries

193 entries across 193 versions & 1 rubygems

Version Path
ish_manager-0.1.8.500 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.499 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.498 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.497 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.496 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.495 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.494 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.493 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.492 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.491 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.490 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.489 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.488 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.487 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.486 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.485 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.484 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.483 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.482 app/views/ish_manager/user_profiles/_show.haml
ish_manager-0.1.8.481 app/views/ish_manager/user_profiles/_show.haml