- profile ||= user_profile .row .col.s4 %ul %li Email: #{link_to profile.email, user_profile_path(profile)} = link_to '[edit]', edit_user_profile_path( profile ) %li Name: #{profile.name} %li Role: #{profile.role_name} %li User.email: #{profile.user ? profile.user.email : nil} %li City: #{profile.current_city ? profile.current_city.name : nil} %li Profile Photo: = 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| > #{link_to g.name, gallery_path(g.slug)}
= render 'meta', :item => g
%h5 Newsitems - profile.newsitems.each do |n| = render 'ish_manager/newsitems/item', n: n, profile_id: profile.id
%h5 Bookmarked Locations (#{profile.bookmarked_locations.length}) %ul.browser-default - profile.bookmarked_locations.each do |n| %li = n.slug