summaryrefslogtreecommitdiff
path: root/app/views/generic_files
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-26 10:31:08 +0200
committerPeter Kozak <spag@golwen.net>2013-04-26 10:31:08 +0200
commitf80fb1082eaf083557acd1fa92da4d2ffbfe1de9 (patch)
treeb4297cab623fad29147f5016cb76d937fa09a62d /app/views/generic_files
parent2cab3ca685d41c14c31f80bba4484531acd1cf36 (diff)
display download link
Diffstat (limited to 'app/views/generic_files')
-rw-r--r--app/views/generic_files/_index_core.html.haml8
1 files changed, 6 insertions, 2 deletions
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}