41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
-if input.data_file
|
|
|
|
-if input.style == "avec-photo"
|
|
.detail_download_content
|
|
-if input.data_file.image_file
|
|
=image_tag input.data_file.image_file.file.large.medium.small.thumb.url
|
|
-if input.data_file.data_file_category and 1 == 2
|
|
=input.data_file.data_file_category.name
|
|
|
|
-if input.title?
|
|
-title = input.title
|
|
-else
|
|
-title = input.data_file.title
|
|
|
|
%h4=title
|
|
.desc
|
|
=simple_format input.data_file.long_desc
|
|
.links
|
|
=link_to "Télécharger",input.data_file.file.url
|
|
|
|
-if input.show_yumpu?
|
|
=link_to "Lire", read_data_file_path(input.data_file.token)
|
|
|
|
-if input.boutique?
|
|
=#link_to "Commander", "mailto:contact@jipe.fr?subject=commande de document&body=Fichier : https://jipe.fr#{input.data_file.file.url} "
|
|
=link_to "Commander", new_public_document_order_path(:token => input.data_file.token), :remote => true
|
|
.clear
|
|
|
|
|
|
-else
|
|
.download_content
|
|
=link_to input.title.to_s, input.data_file.file.url
|
|
|
|
|
|
|
|
-else
|
|
|
|
.download_content
|
|
=link_to input.title.to_s, ""
|
|
|