# HG changeset patch
# User ndurand
# Date 1427305248 -3600
# Node ID 033173b1de1e172dee86aef3fa9df3ff41fb2c08
# Parent 840fdb2306caf0e55e1b44b48f680571a956b527
added annotation type config for polemic and segment widgets
diff -r 840fdb2306ca -r 033173b1de1e src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/iframe.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/iframe.html Tue Mar 24 18:13:08 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/iframe.html Wed Mar 25 18:40:48 2015 +0100
@@ -37,15 +37,21 @@
},
autostart: {% if autostart %} true {% else %} false {% endif %}
}
- {% if polemic == 'all' or polemic == 'tweet' %}
+ {% if polemic %}
,{
type: "Polemic",
{% if polemic == 'all' %}
annotation_type: false,
+ {% else %}
+ annotation_type: [
+ {% for type in polemic_annotation_types %}
+ {% if type == polemic_annotation_types|last %}
+ "{{type}}"
+ {% else %}
+ "{{type}}",
+ {% endif %}
+ {% endfor %}],
{% endif %}
- {% if polemic == 'tweet' %}
- annotation_type: "tweet",
- {% endif %}
max_elements: {{ polemic__max_elements }},
defaultcolor: "#{{ polemic_defaultColor }}",
foundcolor: "#{{ polemic_foundColor }}",
@@ -101,7 +107,14 @@
}
{% if segments %},{
type: "Segments",
- annotation_type: ["chap","découpage"]
+ annotation_type: [
+ {% for type in segments_annotation_types %}
+ {% if type == segments_annotation_types|last %}
+ "{{type}}"
+ {% else %}
+ "{{type}}",
+ {% endif %}
+ {% endfor %}]
}
{% endif %}
{% if multisegments %},{
diff -r 840fdb2306ca -r 033173b1de1e src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/mdplayer_config.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/mdplayer_config.html Tue Mar 24 18:13:08 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/mdplayer_config.html Wed Mar 25 18:40:48 2015 +0100
@@ -36,9 +36,17 @@
-
- Segments
-
+