summaryrefslogtreecommitdiff
path: root/app/views/users/_phones.html.haml
blob: e001eae246f3be6c56b96c569296efc0e78f629d (plain)
1
2
3
4
5
6
7
-# Phones
-#
- if (can?( :index, Phone, :phoneable => user ) && user.phones.count > 0 ) || can?( :create, Phone, :phoneable => user )
  %h2= t('phones.index.page_title')
  - if can?( :index, Phone, :phoneable => user ) && user.phones.count > 0
    = render "phones/index_core", :phones => user.phones
  = render :partial => 'shared/create_link', :locals => {:parent => user, :child_class => Phone}