mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-03-19 03:08:30 -04:00
a
This commit is contained in:
@@ -1 +1 @@
|
|||||||
VERSION = "7.9f"
|
VERSION = "7.9g"
|
||||||
|
|||||||
@@ -79,6 +79,10 @@ function EditMediaButton(props) {
|
|||||||
link = '/edit-media.html';
|
link = '/edit-media.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (link && inEmbeddedApp()) {
|
||||||
|
link += '&mode=lms_embed_mode';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a href={link} rel="nofollow" title={translateString('Edit media')} className="edit-media-icon">
|
<a href={link} rel="nofollow" title={translateString('Edit media')} className="edit-media-icon">
|
||||||
<i className="material-icons">edit</i>
|
<i className="material-icons">edit</i>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -6,28 +6,28 @@
|
|||||||
<div class="media-edit-nav" style="background-color: #f0f0f0; padding: 10px 0; margin-bottom: 20px;">
|
<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;">
|
<ul style="list-style: none; display: flex; justify-content: space-around; margin: 0; padding: 0;">
|
||||||
<li style="display: inline-block;">
|
<li style="display: inline-block;">
|
||||||
<a href="{% url 'edit_media' %}?m={{media_object.friendly_token}}"
|
<a href="{% url 'edit_media' %}?m={{media_object.friendly_token}}{% if request.GET.mode == 'lms_embed_mode' %}&mode=lms_embed_mode{% endif %}"
|
||||||
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 %}">
|
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}}
|
{{ "Metadata" | custom_translate:LANGUAGE_CODE}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% if media_object.media_type == 'video' or media_object.media_type == 'audio' %}
|
{% if media_object.media_type == 'video' or media_object.media_type == 'audio' %}
|
||||||
<li style="display: inline-block;">
|
<li style="display: inline-block;">
|
||||||
<a href="{% url 'edit_video' %}?m={{media_object.friendly_token}}"
|
<a href="{% url 'edit_video' %}?m={{media_object.friendly_token}}{% if request.GET.mode == 'lms_embed_mode' %}&mode=lms_embed_mode{% endif %}"
|
||||||
|
|
||||||
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 %}">
|
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}}
|
{{ "Trim" | custom_translate:LANGUAGE_CODE}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li style="display: inline-block;">
|
<li style="display: inline-block;">
|
||||||
<a href="{% url 'add_subtitle' %}?m={{media_object.friendly_token}}"
|
<a href="{% url 'add_subtitle' %}?m={{media_object.friendly_token}}{% if request.GET.mode == 'lms_embed_mode' %}&mode=lms_embed_mode{% endif %}"
|
||||||
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 %}">
|
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}}
|
{{ "Captions" | custom_translate:LANGUAGE_CODE}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li style="display: inline-block">
|
<li style="display: inline-block">
|
||||||
<a
|
<a
|
||||||
href="{% url 'edit_chapters' %}?m={{media_object.friendly_token}}"
|
href="{% url 'edit_chapters' %}?m={{media_object.friendly_token}}{% if request.GET.mode == 'lms_embed_mode' %}&mode=lms_embed_mode{% endif %}"
|
||||||
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 %}"
|
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
|
Chapters
|
||||||
@@ -44,14 +44,14 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li style="display: inline-block;">
|
<li style="display: inline-block;">
|
||||||
<a href="{% url 'publish_media' %}?m={{media_object.friendly_token}}"
|
<a href="{% url 'publish_media' %}?m={{media_object.friendly_token}}{% if request.GET.mode == 'lms_embed_mode' %}&mode=lms_embed_mode{% endif %}"
|
||||||
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 %}">
|
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}}
|
{{ "Publish" | custom_translate:LANGUAGE_CODE}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% if ALLOW_MEDIA_REPLACEMENT %}
|
{% if ALLOW_MEDIA_REPLACEMENT %}
|
||||||
<li style="display: inline-block;">
|
<li style="display: inline-block;">
|
||||||
<a href="{% url 'replace_media' %}?m={{media_object.friendly_token}}"
|
<a href="{% url 'replace_media' %}?m={{media_object.friendly_token}}{% if request.GET.mode == 'lms_embed_mode' %}&mode=lms_embed_mode{% endif %}"
|
||||||
style="text-decoration: none; {% if active_tab == 'replace' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
|
style="text-decoration: none; {% if active_tab == 'replace' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
|
||||||
{{ "Replace" | custom_translate:LANGUAGE_CODE}}
|
{{ "Replace" | custom_translate:LANGUAGE_CODE}}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user