Permalink
Browse files

enhancement: #315 - adjusting display of javascript player for audio …

…and video to have download link as well.
  • Loading branch information...
1 parent d0e0046 commit 8e7dbf37480c591b85747f01956ddba6c5e8d26d @walter walter committed May 3, 2012
@@ -1,5 +1,5 @@
<% if current_user_can_see_private_files_for?(item) -%>
- <p><%=t 'audio.details.filename' %> <%= item.filename %> (<%= link_to_original_of item, t('audio.details.listen') -%>)</p>
+ <p><%=t 'audio.details.filename' %> <%= item.filename %> <%= link_to_original_of item, t('audio.details.listen') -%></p>
<p><%=t 'audio.details.size' %> <%= number_to_human_size(item.size) %></p>
<p><%=t 'audio.details.type' %> <%= item.content_type %></p>
<% else -%>
@@ -1,5 +1,5 @@
<% if current_user_can_see_private_files_for?(item) -%>
- <p><%=t 'documents.details.filename' %> <%= item.filename %> ( <%= link_to_original_of item -%> )</p>
+ <p><%=t 'documents.details.filename' %> <%= item.filename %> <%= link_to_original_of item -%> </p>
<p><%=t 'documents.details.size' %> <%= number_to_human_size(item.size) %></p>
<p><%=t 'documents.details.type' %> <%= item.content_type %> ( <%= link_to(t('documents.details.replace_description'),
:action => 'convert', :id => item,
@@ -1,5 +1,5 @@
<% if current_user_can_see_private_files_for?(item) -%>
- <p><%=t 'video.details.filename' %> <%= item.filename %> (<%= link_to_original_of item -%>)</p>
+ <p><%=t 'video.details.filename' %> <%= item.filename %> <%= link_to_original_of item -%></p>
<p><%=t 'video.details.size' %> <%= number_to_human_size(item.size) %></p>
<p><%=t 'video.details.type' %> <%= item.content_type %></p>
<% else -%>
View
@@ -72,6 +72,7 @@ en:
disallowed: disallowed
display: display
do_not_reply: "This {{t.base.email}} was sent in bulk to authorized {{t.base.member.pluralize}}. Please don't reply to this {{t.base.email}}."
+ download: download
downloaded: downloaded
edit: edit
edited: edited
@@ -447,7 +448,7 @@ en:
delete: "{{t.base.delete.capitalize}}"
deleted_model: "{{t.base.deleted.capitalize}} {{model}}"
delimiter: Delimiter
- download: Download
+ download: "{{t.base.download.capitalize}}"
edit: "{{t.base.edit.capitalize}}"
export: Export
filtered: (Filtered)
@@ -572,7 +573,7 @@ en:
rejected: "{{t.base.membership.capitalize}} {{t.base.rejected}}"
request: "{{t.base.request.capitalize}} {{t.base.membership}}"
link_to_original_of:
- phrase: "{{t.base.view}}"
+ phrase: "( {{t.base.download}} )"
link_to_preview_of:
not_available: "{{t.base.not_available}}"
link_to_related_item_function:
@@ -618,8 +619,8 @@ en:
audio:
details:
filename: "Filename:"
- listen: listen
- not_available: "{{t.base.not_available}} for download"
+ listen: "( {{t.base.download}} )"
+ not_available: "{{t.base.not_available}} for {{t.base.download}}"
size: "Size:"
type: "Recording {{t.base.type}}:"
edit:
@@ -758,7 +759,7 @@ en:
enabled: "{{t.base.enabled.capitalize}}"
file_privacy: "{{t.base.default.capitalize}} Original File Privacy:"
file_privacy_current_inheritance: "The {{t.base.site.capitalize}} {{t.base.has}} files <strong>{{current_inheritance}}</strong> {{t.base.by}} {{t.base.default}}"
- file_privacy_example: "{{t.base.you.capitalize}} may use this to restrict the download of an {{t.base.item}}'s original file. For example, {{t.base.you}} may set a {{t.base.zoom_types.document}} to be '{{t.base.public}}' and {{t.base.show}} the {{t.base.information}} about it, but limit downloading the actual {{t.base.zoom_types.document}} file to {{t.base.basket}} {{t.base.member.pluralize}}. Note this applies across all versions of an {{t.base.item}}."
+ file_privacy_example: "{{t.base.you.capitalize}} may use this to restrict the {{t.base.download}} of an {{t.base.item}}'s original file. For example, {{t.base.you}} may set a {{t.base.zoom_types.document}} to be '{{t.base.public}}' and {{t.base.show}} the {{t.base.information}} about it, but limit {{t.base.download}}ing the actual {{t.base.zoom_types.document}} file to {{t.base.basket}} {{t.base.member.pluralize}}. Note this applies across all versions of an {{t.base.item}}."
file_privacy_private_example: "{{t.base.can_be_downloaded.capitalize}} {{t.base.only}} {{t.base.by}} authorized {{t.base.basket}} {{t.base.member.pluralize}}"
file_privacy_public_example: "{{t.base.can_be_downloaded.capitalize}} {{t.base.by}} {{t.base.everyone}}"
file_visibility: "{{t.base.private.capitalize}} Original Files Visibility:"
@@ -1159,7 +1160,7 @@ en:
documents:
details:
filename: "Filename:"
- not_available: "{{t.base.not_available}} for download"
+ not_available: "{{t.base.not_available}} for {{t.base.download}}"
replace_description: "{{t.base.replace.capitalize}} {{t.base.description}} with {{t.base.zoom_types.document}} text"
size: "Size:"
type: "{{t.base.zoom_types.document.capitalize}} {{t.base.type}}:"
@@ -1429,7 +1430,7 @@ en:
images:
details:
filename: "Original Filename:"
- not_available: "{{t.base.not_available}} for download"
+ not_available: "{{t.base.not_available}} for {{t.base.download}}"
size: "Original Size:"
type: "Original {{t.base.zoom_types.image.capitalize}} {{t.base.type.capitalize}}:"
view: "{{t.base.view}}"
@@ -12,11 +12,11 @@ For non-WP pages call script in <HEAD>:
var anarchy_url = '/javascripts/anarchy_media' // http address for the anarchy-media folder (no trailing slash).
var accepted_domains=new Array("") // OPTIONAL - Restrict script use to your domains. Add root domain name (minus 'http' or 'www') in quotes, add extra domains in quotes and separated by comma.
-var viddownloadLink = 'none' // Download link for flv and wmv links: One of 'none' (to turn downloading off) or 'inline' to display the link. ***Use $qtkiosk for qt***.
+var viddownloadLink = 'inline' // Download link for flv and wmv links: One of 'none' (to turn downloading off) or 'inline' to display the link. ***Use $qtkiosk for qt***.
// MP3 Flash player options
var playerloop = 'no' // Loop the music ... yes or no?
-var mp3downloadLink = 'none' // Download for mp3 links: One of 'none' (to turn downloading off) or 'inline' to display the link.
+var mp3downloadLink = 'inline' // Download for mp3 links: One of 'none' (to turn downloading off) or 'inline' to display the link.
// Hex colours for the MP3 Flash Player (minus the #)
var playerbg ='DDDDDD' // Background colour

0 comments on commit 8e7dbf3

Please sign in to comment.