Subtitle interface using attachments
This commit is contained in:
parent
3019306e00
commit
74bc86732e
@ -81,7 +81,7 @@ celery_setup_elsewhere = boolean(default=False)
|
||||
# Whether or not users are able to upload files of any filetype with
|
||||
# their media entries -- This is useful if you want to provide the
|
||||
# source files for a media file but can also be a HUGE security risk.
|
||||
allow_attachments = boolean(default=False)
|
||||
allow_attachments = boolean(default=True)
|
||||
|
||||
# Cookie stuff
|
||||
csrf_cookie_name = string(default='mediagoblin_csrftoken')
|
||||
|
@ -60,6 +60,10 @@
|
||||
{% else %}
|
||||
type="{{ media.media_manager['default_webm_type'] }}"
|
||||
{% endif %} />
|
||||
{%- for attachment in media.attachment_files %}
|
||||
<track src="{{ request.app.public_store.file_url(attachment.filepath) }}"
|
||||
label = "{{- attachment.name -}}" kind="subtitles" >
|
||||
{%- endfor %}
|
||||
<div class="no_html5">
|
||||
{%- trans -%}Sorry, this video will not work because
|
||||
your web browser does not support HTML5
|
||||
|
Loading…
x
Reference in New Issue
Block a user