diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2021-03-09 22:39:04 +1100 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2021-03-09 22:39:04 +1100 |
commit | a25a6e3395bb39284c15e29d0892e540aa133479 (patch) | |
tree | 57d0f89a4686b029a912c62f7ddcfa1a72e319b0 /mediagoblin/templates | |
parent | 41db886d63a46c8d137106e65c2a9eece0dc7d5c (diff) | |
download | mediagoblin-a25a6e3395bb39284c15e29d0892e540aa133479.tar.lz mediagoblin-a25a6e3395bb39284c15e29d0892e540aa133479.tar.xz mediagoblin-a25a6e3395bb39284c15e29d0892e540aa133479.zip |
Update video links to support multiple resolution transcoding [#5620].
We may need to push download link creation into the view in the future to make
it more fully featured, but this will solve the immediate issue with missing
download links on new media after 0.10.0. Sorting of entries won't be right if
your media is over 999p since it's alphabetical.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r-- | mediagoblin/templates/mediagoblin/media_displays/video.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/mediagoblin/templates/mediagoblin/media_displays/video.html b/mediagoblin/templates/mediagoblin/media_displays/video.html index f3e1978e..4a01b428 100644 --- a/mediagoblin/templates/mediagoblin/media_displays/video.html +++ b/mediagoblin/templates/mediagoblin/media_displays/video.html @@ -93,13 +93,17 @@ </a> </li> {% endif %} + {% for name, media in media.media_files|dictsort|list %} + {% if name.startswith('webm') %} + <li> + <a href="{{ request.app.public_store.file_url(media) }}"> + {%- trans %}WebM file (VP8/Vorbis){% endtrans -%} + {{ name | replace('webm_', ' ') }} + </a> + </li> + {% endif %} + {% endfor %} {% if 'webm_video' in media.media_files %} - <li> - <a href="{{ request.app.public_store.file_url( - media.media_files.webm_video) }}"> - {%- trans %}WebM file (VP8/Vorbis){% endtrans -%} - </a> - </li> {% endif %} </ul> {% endblock %} |