Skip to content

Instantly share code, notes, and snippets.

@jparrish62
Created April 24, 2019 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jparrish62/6e27d26a761788d37e7b19740f8b8c38 to your computer and use it in GitHub Desktop.
Save jparrish62/6e27d26a761788d37e7b19740f8b8c38 to your computer and use it in GitHub Desktop.
.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'}/
@jparrish62
Copy link
Author

I need #{download.file_type} on line 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment