summaryrefslogtreecommitdiff
path: root/app/views/users/_generic_files.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/_generic_files.html.haml')
-rw-r--r--app/views/users/_generic_files.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/users/_generic_files.html.haml b/app/views/users/_generic_files.html.haml
new file mode 100644
index 0000000..15bdb74
--- /dev/null
+++ b/app/views/users/_generic_files.html.haml
@@ -0,0 +1,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} \ No newline at end of file