From f80fb1082eaf083557acd1fa92da4d2ffbfe1de9 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Fri, 26 Apr 2013 10:31:08 +0200 Subject: display download link --- app/views/generic_files/_index_core.html.haml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/views/generic_files/_index_core.html.haml') diff --git a/app/views/generic_files/_index_core.html.haml b/app/views/generic_files/_index_core.html.haml index 5fa66f7..3e21b30 100644 --- a/app/views/generic_files/_index_core.html.haml +++ b/app/views/generic_files/_index_core.html.haml @@ -9,6 +9,10 @@ %td= generic_file.category %td= generic_file.name %td= generic_file.file_type - + %td + %p + %a{:href => method( :"#{@parent.class.name.underscore}_generic_file_path" ).(@parent, generic_file, :format => generic_file.file_extension), :method => :get} + %i{:class => 'icon-download'} + = t("generic_files.index.actions.download") - =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => generic_file.owner, :child => generic_file} \ No newline at end of file + =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => generic_file.owner, :child => generic_file} -- cgit v1.2.3