Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add google analytics data to download button, fix #968
- Loading branch information
1 parent
1173a00
commit e06a66c
Showing
5 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<div class="no-preview"> | ||
<%= t('hyrax.works.show.no_preview') %> | ||
<% if Hyrax.config.display_media_download_link? %> | ||
<p/><%= link_to t('hyrax.file_set.show.download'), hyrax.download_path(file_set), target: "_new" %> | ||
<p/><%= link_to t('hyrax.file_set.show.download'), | ||
hyrax.download_path(file_set), | ||
id: "file_download", | ||
data: { label: file_set.id }, | ||
target: "_new" %> | ||
<% end %> | ||
</div> |
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
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
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
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