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