Sha256: 4584781108411933a4262259d3220aca540a0df6da1be53e4888d5c737f4746c

Contents?: true

Size: 1.45 KB

Versions: 5

Compression:

Stored size: 1.45 KB

Contents

-#
-# ish_manager / user_profiles / index
-#

%h5
  User Profiles (#{@user_profiles.count})
  = link_to '[+]', new_user_profile_path


- @user_profiles.each do |profile|
  .panel
    .panel-body
      .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
            %li <b>Address:</b> #{profile.addresses[0].inspect}

        .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

5 entries across 5 versions & 1 rubygems

Version Path
ish_manager-0.1.8.258 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.257 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.256 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.255 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.254 app/views/ish_manager/user_profiles/index.haml