Sha256: 182d9ade5ee09d058c00c230908bbe899438d22f100f810e969fb0432abb94dd

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 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= link_to '[edit]', edit_user_profile_path( profile )
            %li <b>Email:</b> #{profile.email}
            %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>About:</b> #{profile.about}
        .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
          <hr />
      .row
        Address:
        = profile.addresses[0].inspect

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ish_manager-0.1.8.177 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.176 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.173 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.172 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.171 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.166 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.165 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.161 app/views/ish_manager/user_profiles/index.haml