Sha256: a6141dbb781c73d3b87fcf1052a830c73a5534180b9653ca97894e917c42f037

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

%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}
        .col.s8
          %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 />

          %h5 Bookmarked Locations
          %ul
            - profile.bookmarked_locations.each do |n|
              %li
                = n.slug

      .row
        Address:
        = profile.addresses[0].inspect

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_manager-0.1.8.253 app/views/ish_manager/user_profiles/index.haml