From 025c5730f7bc746687730044909652950ffb9b95 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Fri, 26 Apr 2013 10:31:45 +0200 Subject: display download link --- app/views/generic_files/show.html.haml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/generic_files/show.html.haml b/app/views/generic_files/show.html.haml index b375dfc..9405444 100644 --- a/app/views/generic_files/show.html.haml +++ b/app/views/generic_files/show.html.haml @@ -16,5 +16,10 @@ %strong= t('generic_files.show.file_size') + ":" = number_to_human_size(@generic_file.file_size) +%p + %i{:class => 'icon-download'} + %strong= t('generic_files.index.actions.download') + ":" + %a{:href => method( :"#{@parent.class.name.underscore}_generic_file_path" ).(@parent, @generic_file, :format => @generic_file.file_extension), :method => :get} + = "#{@generic_file.name}.#{@generic_file.file_extension}" -= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @parent, :child => @generic_file } \ No newline at end of file += render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @parent, :child => @generic_file } -- cgit v1.2.3