Sha256: 32308d31397adf710ab7d942de1fd2a2f1400abfa13e8ffa6623d7d74bdbb126

Contents?: true

Size: 1.09 KB

Versions: 20

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= 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}
        .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

20 entries across 20 versions & 1 rubygems

Version Path
ish_manager-0.1.8.244 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.243 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.242 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.241 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.239 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.238 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.237 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.236 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.235 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.234 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.233 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.232 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.231 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.230 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.229 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.228 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.227 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.226 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.225 app/views/ish_manager/user_profiles/index.haml
ish_manager-0.1.8.224 app/views/ish_manager/user_profiles/index.haml