summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-26 10:31:45 +0200
committerPeter Kozak <spag@golwen.net>2013-04-26 10:31:45 +0200
commit025c5730f7bc746687730044909652950ffb9b95 (patch)
treeaad0ff734e84a0213b64d4c472eb233a7e54ae03 /app/views
parentf80fb1082eaf083557acd1fa92da4d2ffbfe1de9 (diff)
display download link
Diffstat (limited to 'app/views')
-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 }