Sha256: 35f3fc4ff33da6d03caa8d2617cd77ad348d22f4a778c4f8b6faf5f81289a26f

Contents?: true

Size: 1.14 KB

Versions: 31

Compression:

Stored size: 1.14 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>username:</b> #{profile.username}
            %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, profile_id: profile.id
          <hr />
      .row
        Address:
        = profile.addresses[0].inspect

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ish_manager-0.1.8.223 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.222 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.221 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.220 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.219 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.218 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.217 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.216 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.215 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.214 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.213 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.212 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.211 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.210 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.209 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.208 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.207 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.206 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.205 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.204 app/views/ish_manager/user_profiles/index.haml