%ul.media-list
  - documents.each do |d|
    %li.media
      .well.well-small
        %i.fa.fa-3x.pull-left{:class => get_file_icon_for_filename(d.original_filename)}
        .media-body
          %h5.media-heading
            = "#{d.creator.name} at #{format_as_date_time(d.created_at)}"
            = link_to 'Remove', d, :method => :delete, :class => "btn btn-warning btn-xs pull-right", :style => "margin-left: 5px;", :data => { :confirm => 'Are you sure you want to remove this document?' }
            = link_to 'Download', download_document_path(d), :class => "btn btn-success btn-xs pull-right", :style => "margin-left: 5px;", :data => { :confirm => 'Are you sure you want to download this document?' }
          = d.description.html_safe


%ul.media-list
  - documents.each do |d|
    %li.media
      .well.well-small
        %i.fa.fa-3x.pull-left{:class => get_file_icon_for_filename(d.original_filename)}
        .media-body
          %h5.media-heading
            = "#{d.creator.name} at #{format_as_date_time(d.created_at)}"
            = link_to 'Remove', d, :method => :delete, :class => "btn btn-warning btn-xs pull-right", :style => "margin-left: 5px;", :data => { :confirm => 'Are you sure you want to remove this document?' }
            = link_to 'Download', download_document_path(d), :class => "btn btn-success btn-xs pull-right", :style => "margin-left: 5px;"
          = d.description.html_safe


Remove confirmation dialog for downloading a linked document
Remove confirmation dialog for downloading a linked document
