%h5 User Profiles (#{@user_profiles.count}) = link_to '[+]', new_user_profile_path - @user_profiles.each do |profile| .panel .panel-body .row .col-sm-4 %ul %li= link_to '[edit]', edit_user_profile_path( profile ) %li Email: #{profile.email} %li username: #{profile.username} %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} .col-sm-8 %h5 Shared galleries - profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g| > #{link_to g.name, gallery_path(g.galleryname)}
= render 'meta', :item => g
%h5 Newsitems - profile.newsitems.each do |n| = render 'ish_manager/newsitems/item', n: n, profile_id: profile.id
.row Address: = profile.addresses[0].inspect