Created
April 24, 2019 15:54
-
-
Save jparrish62/6e27d26a761788d37e7b19740f8b8c38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.product | |
- link = featured_downloads_modal_path(download.id) | |
- link = modal_path(download.id) if current_user | |
%a{ :href=>link, :data=>{ :remote=>'true' } } | |
%img{ :src => download.get_preview_image }/ | |
%h4= download.name | |
%p= download.description.truncate(120) | |
%input{:type => "hidden", :value => download.id, :name => "download_id" }/ | |
%input{:type => "submit", :value => "Download", :data => {:remote => true, disable_with: "Please wait..." }, class: 'btn-line' }/ | |
- if @url | |
%input{:type => "hidden", :value=>@url, :class=> 'download-url'}/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need #{download.file_type} on line 9