mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-11 09:58:53 -05:00
Updated logic in both the edit_video view and media navigation template to allow audio media types, in addition to video, to access video editing features and navigation links.
54 lines
3.0 KiB
HTML
54 lines
3.0 KiB
HTML
{% load custom_filters %}
|
|
{% load i18n %}
|
|
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
|
|
<div class="media-edit-nav" style="background-color: #f0f0f0; padding: 10px 0; margin-bottom: 20px;">
|
|
<ul style="list-style: none; display: flex; justify-content: space-around; margin: 0; padding: 0;">
|
|
<li style="display: inline-block;">
|
|
<a href="{% url 'edit_media' %}?m={{media_object.friendly_token}}"
|
|
style="text-decoration: none; {% if active_tab == 'metadata' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
|
|
{{ "Metadata" | custom_translate:LANGUAGE_CODE}}
|
|
</a>
|
|
</li>
|
|
{% if media_object.media_type == 'video' or media_object.media_type == 'audio' %}
|
|
<li style="display: inline-block;">
|
|
<a href="{% url 'edit_video' %}?m={{media_object.friendly_token}}"
|
|
|
|
style="text-decoration: none; {% if active_tab == 'trim' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
|
|
{{ "Trim" | custom_translate:LANGUAGE_CODE}}
|
|
</a>
|
|
</li>
|
|
<li style="display: inline-block;">
|
|
<a href="{% url 'add_subtitle' %}?m={{media_object.friendly_token}}"
|
|
style="text-decoration: none; {% if active_tab == 'subtitles' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
|
|
{{ "Captions" | custom_translate:LANGUAGE_CODE}}
|
|
</a>
|
|
</li>
|
|
<li style="display: inline-block">
|
|
<a
|
|
href="{% url 'edit_chapters' %}?m={{media_object.friendly_token}}"
|
|
style="text-decoration: none; {% if active_tab == 'chapters' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}"
|
|
>
|
|
Chapters
|
|
</a>
|
|
</li>
|
|
{% comment %}
|
|
<li style="display: inline-block;">
|
|
<a href="{% url 'edit_chapters' %}?m={{media_object.friendly_token}}"
|
|
|
|
style="text-decoration: none; {% if active_tab == 'chapters' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
|
|
{{ "Chapters" | custom_translate:LANGUAGE_CODE}}
|
|
</a>
|
|
</li>
|
|
{% endcomment %}
|
|
{% endif %}
|
|
<li style="display: inline-block;">
|
|
<a href="{% url 'publish_media' %}?m={{media_object.friendly_token}}"
|
|
style="text-decoration: none; {% if active_tab == 'publish' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
|
|
{{ "Publish" | custom_translate:LANGUAGE_CODE}}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|