mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
clean up code
This commit is contained in:
@@ -29,22 +29,6 @@
|
|||||||
{{ "regeneration of sub-definitions" | trans }}
|
{{ "regeneration of sub-definitions" | trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% if selectionLength == 1%}
|
|
||||||
{% for record in records %}
|
|
||||||
{% if record.get_type() == 'video' %}
|
|
||||||
<li>
|
|
||||||
<a href="#thumbExtractor">
|
|
||||||
{{ "video tool" | trans }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#rangeExtractor">
|
|
||||||
{{ "video range extractor" | trans }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#image">
|
<a href="#image">
|
||||||
{{ "image tool" | trans }}
|
{{ "image tool" | trans }}
|
||||||
@@ -358,17 +342,12 @@
|
|||||||
var toolsConfig = {
|
var toolsConfig = {
|
||||||
selectionLength: {{ selectionLength }},
|
selectionLength: {{ selectionLength }},
|
||||||
databaseId: {% if selectionLength == 1%}{{record.get_base_id}}{% else %}0{% endif %},
|
databaseId: {% if selectionLength == 1%}{{record.get_base_id}}{% else %}0{% endif %},
|
||||||
databoxId: {% if selectionLength == 1 %}{{ record.get_sbas_id() }}{% else %}0{% endif %},
|
|
||||||
recordId: {% if selectionLength == 1%}{{record.get_record_id}}{% else %}0{% endif %},
|
|
||||||
translations: {
|
translations: {
|
||||||
alertTitle: '{{ "alert" | trans }}',
|
alertTitle: '{{ "alert" | trans }}',
|
||||||
noImgSelected: '{{ "no image selected" | trans }}',
|
noImgSelected: '{{ "no image selected" | trans }}',
|
||||||
processing: '{{ "processing" | trans }}',
|
processing: '{{ "processing" | trans }}',
|
||||||
thumbnailTitle: '{{ 'thumbnail validation' | trans }}',
|
thumbnailTitle: '{{ 'thumbnail validation' | trans }}',
|
||||||
updateTitle: '{{ 'Successful update' | trans }}'
|
|
||||||
},
|
},
|
||||||
T_fields: {{ JSonFields|raw }},
|
|
||||||
videoEditorConfig: {% if videoEditorConfig is not null %}{{ videoEditorConfig|json_encode()|raw }}{% else %}{}{% endif %},
|
|
||||||
records: [
|
records: [
|
||||||
|
|
||||||
{% for record in records %}
|
{% for record in records %}
|
||||||
|
|||||||
Reference in New Issue
Block a user