Skip to content

Commit

Permalink
feat: Adding format to Download file link at Publication detail
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Oct 9, 2024
1 parent 8eb5692 commit a041903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tpi/publications/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<%= @publication.summary&.html_safe %>
</div>

<%= link_to 'Download file', tpi_publication_download_file_path(slug: @publication.slug), target: '_blank', class: 'button is-primary' %>
<%= link_to 'Download file', tpi_publication_download_file_path(slug: @publication.slug, format: format_of(@publication.file)), target: '_blank', class: 'button is-primary' %>
</div>
</div>
</div>
Expand Down

0 comments on commit a041903

Please sign in to comment.