summaryrefslogtreecommitdiff
path: root/app/views/generic_files/_index_core.html.haml
blob: 3e21b30cf9ecafabfdddf5391e0892b0ef349b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%table.table.table-striped
  %tr
    %th= t('generic_files.index.category')
    %th= t('generic_files.index.name')
    %th= t('generic_files.index.file_type')
    
  - for generic_file in generic_files
    %tr
      %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}