--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_popup.html Thu Oct 11 19:03:50 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_popup.html Mon Oct 15 10:59:04 2012 +0200
@@ -22,18 +22,24 @@
var player_id='{{player_id}}';
var translate_show="{% trans 'Show Player' %}";
var translate_hide="{% trans 'Hide Player' %}";
+ $j(document).ready(function(){
+ init_events();
+ });
+
</script>
<script type="text/javascript" src="{{LDT_MEDIA_PREFIX}}js/embed_popup.js"></script>
<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/workspace.css" type="text/css"/>
<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/embed_popup.css" type="text/css"/>
<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/jq-css/jquery.qtip.css" type="text/css"/>
+ <link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/style.css" type="text/css"/>
+
</head>
<body id="init_embed_popup">
<textarea id="embed_code_var" readonly="readonly" class="ldt_player_code" style="display:none">{{ embed_rendered.player }}</textarea>
- <div id='ldt_id>
+ <div id='ldt_id'>
<div id='ldt_id_title'>{% trans 'project id' %} <span id="project_id_select">({% trans 'Select' %})</span> : <input id="project_id_input" value="{{ldt_id}}"/></div>
</div>
@@ -50,9 +56,9 @@
<br></br>
<code id ="code_{{player_id}}" >
<div id="player_code">
- <br><div>
- <input type="radio" id="type_embed_div" name="player_code_type" value="div" checked onClick="div_event()" > {% trans 'Use the div integration mode' %}</input><br>
- <input type="radio" id="type_embed_iframe" name="player_code_type" value="iframe" onClick="iframe_event()"> {% trans 'Use the iframe integration mode' %}</input><br>
+ <br><div id='ldt_id'><br> {% trans 'Integration mode' %}
+ <input type="radio" id="type_embed_div" name="player_code_type" value="div" checked onClick="div_event()" > {% trans 'div' %} </input>
+ <input type="radio" id="type_embed_iframe" name="player_code_type" value="iframe" onClick="iframe_event()"> {% trans 'iframe' %} </input><br>
</div></br>
<textarea id="player_id_code" readonly="readonly" class="ldt_player_code">{{ embed_rendered.player }}</textarea>
</div>
@@ -62,10 +68,10 @@
<br>
<div id="links_code" class="ldt_player_code">{% include "ldt/ldt_utils/partial/embed_links.html" %}</div>
</br>
+
</div>
- <a href="{{json_url}}?escape=true&mimetype=text/plain" class="ldt_json_link" >{% trans 'clik here to see the project content' %}</a>
-{% analytics %}
+ {% analytics %}
</body>
</html>
Binary file src/ldt/ldt/locale/fr/LC_MESSAGES/django.mo has changed
--- a/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Thu Oct 11 19:03:50 2012 +0200
+++ b/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Mon Oct 15 10:59:04 2012 +0200
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-10-08 18:09+0200\n"
+"POT-Creation-Date: 2012-10-12 18:14+0200\n"
"PO-Revision-Date: 2010-03-09 15:52+0100\n"
"Last-Translator: Yves-Marie Haussonne <ymh.work@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -37,7 +37,7 @@
msgid "all"
msgstr "tous"
-#: .\ldt_utils\forms.py:33 .\ldt_utils\models.py:53
+#: .\ldt_utils\forms.py:33 .\ldt_utils\models.py:57
#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:69
msgid "title"
msgstr "titre"
@@ -62,7 +62,7 @@
msgid "Content Tag"
msgstr "Catégorie de contenu"
-#: .\ldt_utils\forms.py:52 .\ldt_utils\models.py:155
+#: .\ldt_utils\forms.py:52 .\ldt_utils\models.py:159
msgid "content.content_creation_date"
msgstr "Date de création du contenu"
@@ -94,119 +94,119 @@
msgid "content.front_project"
msgstr "Choisir le front project"
-#: .\ldt_utils\forms.py:57 .\ldt_utils\models.py:154
+#: .\ldt_utils\forms.py:57 .\ldt_utils\models.py:158
msgid "content.duration"
msgstr "Durée"
-#: .\ldt_utils\models.py:42
+#: .\ldt_utils\models.py:46
msgid "media.external_id"
msgstr "id externe"
-#: .\ldt_utils\models.py:43
+#: .\ldt_utils\models.py:47
msgid "media.external_permalink"
msgstr "permalien externe"
-#: .\ldt_utils\models.py:44
+#: .\ldt_utils\models.py:48
msgid "media.external_publication_url"
msgstr "url de publication externe"
-#: .\ldt_utils\models.py:45
+#: .\ldt_utils\models.py:49
msgid "media.external_src_url"
msgstr "url source"
-#: .\ldt_utils\models.py:46
+#: .\ldt_utils\models.py:50
msgid "media.creation_date"
msgstr "Date de création"
-#: .\ldt_utils\models.py:47
+#: .\ldt_utils\models.py:51
msgid "media.media_creation_date"
msgstr "Date de création du média"
-#: .\ldt_utils\models.py:48
+#: .\ldt_utils\models.py:52
msgid "media.update_date"
msgstr "Date de maj"
-#: .\ldt_utils\models.py:49
+#: .\ldt_utils\models.py:53
msgid "media.videopath"
msgstr "videopath"
-#: .\ldt_utils\models.py:50
+#: .\ldt_utils\models.py:54
msgid "media.duration"
msgstr "Durée du contenu (ms)"
-#: .\ldt_utils\models.py:51
+#: .\ldt_utils\models.py:55
msgid "media.creator"
msgstr "Créateur"
-#: .\ldt_utils\models.py:52
+#: .\ldt_utils\models.py:56
msgid "description"
msgstr "description"
-#: .\ldt_utils\models.py:54
+#: .\ldt_utils\models.py:58
msgid "media.src"
msgstr "Sources"
-#: .\ldt_utils\models.py:56
+#: .\ldt_utils\models.py:60
msgid "media.src_hash"
msgstr "Hash de la source"
-#: .\ldt_utils\models.py:57
+#: .\ldt_utils\models.py:61
msgid "media.mimetype"
msgstr "mimetype"
-#: .\ldt_utils\models.py:147
+#: .\ldt_utils\models.py:151
msgid "content.iri_id"
msgstr "iri id"
-#: .\ldt_utils\models.py:148
+#: .\ldt_utils\models.py:152
msgid "content.iriurl"
msgstr "iri url"
-#: .\ldt_utils\models.py:149
+#: .\ldt_utils\models.py:153
msgid "content.creation_date"
msgstr "date de création"
-#: .\ldt_utils\models.py:150
+#: .\ldt_utils\models.py:154
msgid "content.update_date"
msgstr "Date de maj"
-#: .\ldt_utils\models.py:151
+#: .\ldt_utils\models.py:155
msgid "content.title"
msgstr "titre"
-#: .\ldt_utils\models.py:152
+#: .\ldt_utils\models.py:156
msgid "content.description"
msgstr "Description"
-#: .\ldt_utils\models.py:153
+#: .\ldt_utils\models.py:157
msgid "content.authors"
msgstr "Auteurs"
-#: .\ldt_utils\models.py:472
+#: .\ldt_utils\models.py:527
msgid "content_stat.content"
msgstr "statistiques d'annotation"
-#: .\ldt_utils\models.py:473
+#: .\ldt_utils\models.py:528
msgid "content_stat.annotations_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:474
+#: .\ldt_utils\models.py:529
msgid "content_stat.polemics_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:475
+#: .\ldt_utils\models.py:530
msgid "content.nb_annotation"
msgstr "nombre d'annotations"
-#: .\ldt_utils\models.py:476
+#: .\ldt_utils\models.py:531
msgid "content.last_annotated"
msgstr "annoté pour la dernière foiss"
-#: .\ldt_utils\models.py:531
+#: .\ldt_utils\models.py:586
msgid "created by"
msgstr "créé par"
-#: .\ldt_utils\models.py:532
+#: .\ldt_utils\models.py:587
msgid "changed by"
msgstr "modifié par"
@@ -654,48 +654,52 @@
msgid "create_project"
msgstr "Créer un nouveau projet Ligne de Temps"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:50
-msgid "Hide Player"
-msgstr "Masquer le Lecteur métadata "
-
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:54
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:67
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:23
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:45
msgid "Show Player"
msgstr "Afficher le Lecteur métadata"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:64
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:24
+msgid "Hide Player"
+msgstr "Masquer le Lecteur métadata "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:42
msgid "project id"
msgstr "Identifiant du projet "
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:64
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:42
msgid "Select"
msgstr "Sélectionner"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:73
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:50
msgid "popup_player"
msgstr "Code Lecteur métadata"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:73
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:50
msgid "popup_seo_body"
msgstr "Code SEO"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:73
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:50
msgid "popup_seo_meta"
msgstr "Code balise meta en-tête"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:73
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:50
msgid "popup_links"
msgstr "Liste de liens"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:82
-msgid "Use the div integration mode"
-msgstr "Utiliser le mode d'integration div"
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:58
+msgid "Integration mode"
+msgstr "Utiliser le mode d'intégration "
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:83
-msgid "Use the iframe integration mode"
-msgstr "Utiliser le mode d'integration iframe"
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:59
+msgid "div"
+msgstr "div"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:95
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:60
+msgid "iframe"
+msgstr "iframe"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:72
msgid "clik here to see the project content"
msgstr "cliquer ici pour voir le contenu du projet"
@@ -988,7 +992,8 @@
#: .\ldt_utils\views\content.py:375
msgid "An error occurred - Please try again or contact webmaster"
-msgstr "Une erreur est apparue - Merci de réessayer ou de contacter le webmaster"
+msgstr ""
+"Une erreur est apparue - Merci de réessayer ou de contacter le webmaster"
#: .\ldt_utils\views\content.py:376
#, fuzzy
@@ -1029,7 +1034,7 @@
msgstr "Echec lors du commit de la suppression du contenu"
#: .\ldt_utils\views\json.py:40 .\ldt_utils\views\rdf.py:15
-#: .\ldt_utils\views\workspace.py:175
+#: .\ldt_utils\views\workspace.py:174
msgid "You can not access this project"
msgstr "vous n'avez pas l'autorisation d'accéder à ce projet"
@@ -1065,12 +1070,12 @@
msgid "confirm deletion"
msgstr "Confirmation d'effacement"
-#: .\ldt_utils\views\workspace.py:125
+#: .\ldt_utils\views\workspace.py:124
msgid ""
"The content does not exists or you are not allowed to access this content"
msgstr "Ce contenu n'existe pas, ou vous n'êtes pas autorisé a y acceder"
-#: .\ldt_utils\views\workspace.py:129
+#: .\ldt_utils\views\workspace.py:128
msgid "Parameters project_id or content_id must be given in the url"
msgstr "Les paramètres project_id et content_id doivent être passés dans l'URL"
--- a/src/ldt/ldt/static/ldt/css/embed_popup.css Thu Oct 11 19:03:50 2012 +0200
+++ b/src/ldt/ldt/static/ldt/css/embed_popup.css Mon Oct 15 10:59:04 2012 +0200
@@ -33,7 +33,7 @@
#ldt_id {
color: #949494;
- font-family: Verdana;
+ font-family: Arial, Helvetica, sans serif;
font-weight: lighter;
font-style: normal;
text-align: left;
--- a/src/ldt/ldt/static/ldt/js/embed_popup.js Thu Oct 11 19:03:50 2012 +0200
+++ b/src/ldt/ldt/static/ldt/js/embed_popup.js Mon Oct 15 10:59:04 2012 +0200
@@ -13,7 +13,7 @@
});
}
-$j(document).ready(function(){
+function init_events(){
toggle_display();
$j("#player_id_code").focus();
@@ -55,19 +55,26 @@
$j("#player_button").click(function(){
$j("#player_id_code").focus();
- $j("#player_id_code").select();
+ $j("#player_id_code").select();
});
$j("#seo_body_button").click(function(){
- $j("#seo_body_id_code").focus();
+ $j("#seo_body_id_code").focus();
$j("#seo_body_id_code").select();
});
+
$j("#seo_meta_button").click(function(){
- $j("#seo_meta_id_code").focus();
+ $j("#seo_meta_id_code").focus();
$j("#seo_meta_id_code").select();
});
+
+ $j('#links_button').click(function() {
+ var range = document.createRange();
+ range.selectNode(document.getElementById('links_code'));
+ window.getSelection().addRange(range);
+ });
-});
+}
function toggle() {
wrapper="wrapper_"+player_id;