Sha256: 20320c7f76eefac80c47e5e651a8e99b9299d49bef6168115c030cc1877544a3

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

%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
              <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}
        .col-sm-8
          %h5 Shared galleries
          - profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
            &gt; #{link_to g.name, gallery_path(g.galleryname)} <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 />
      .row
        Address:
        = profile.addresses[0].inspect

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ish_manager-0.1.8.249 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.248 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.247 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.246 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.245 app/views/ish_manager/user_profiles/index.haml