summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/generic_files/show.html.haml7
1 files changed, 6 insertions, 1 deletions
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 }