Sha256: 8c0dec07329830937248668b3ef0deba5f9376822acaa111d7805e6b7eddd87b

Contents?: true

Size: 1.38 KB

Versions: 36

Compression:

Stored size: 1.38 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

        .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

36 entries across 36 versions & 1 rubygems

Version Path
ish_manager-0.1.8.304 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.303 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.302 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.301 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.300 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.299 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.298 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.296 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.295 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.294 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.293 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.292 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.291 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.290 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.289 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.288 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.287 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.284 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.282 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.281 app/views/ish_manager/user_profiles/index.haml