# HG changeset patch
# User ymh
# Date 1343729633 -7200
# Node ID b93c992268326198c741e2f59a16dc22a1adb251
# Parent 1c0ac4068bbedfc591a2243b2e2a0eed8cd0a70b# Parent a25d344cb446a82c64ca6c9cc311e903d3afb90c
Merge with a25d344cb446a82c64ca6c9cc311e903d3afb90c
diff -r 1c0ac4068bbe -r b93c99226832 .hgtags
--- a/.hgtags Tue Jul 31 02:27:09 2012 +0200
+++ b/.hgtags Tue Jul 31 12:13:53 2012 +0200
@@ -83,3 +83,4 @@
619222c32adef46656a3966c8f400bb692f128f9 V01.12
dfdbe9e00aae99212fc4bf4f54765ee36a2857d2 V01.13
99286ab161613fca59b9db72959a38ed8f77be25 V01.14
+d9bfc148a887ffb0b05f4c784f8b18fea4741dfd V01.15
diff -r 1c0ac4068bbe -r b93c99226832 .settings/org.eclipse.core.resources.prefs
--- a/.settings/org.eclipse.core.resources.prefs Tue Jul 31 02:27:09 2012 +0200
+++ b/.settings/org.eclipse.core.resources.prefs Tue Jul 31 12:13:53 2012 +0200
@@ -1,3 +1,4 @@
+#Fri Jul 27 18:53:06 CEST 2012
eclipse.preferences.version=1
encoding//src/ldt/ldt/core/migrations/0001_initial.py=utf-8
encoding//src/ldt/ldt/core/migrations/0002_auto__del_owner.py=utf-8
@@ -15,6 +16,7 @@
encoding//src/ldt/ldt/ldt_utils/migrations/0011_gen_stat_annotation.py=utf-8
encoding//src/ldt/ldt/ldt_utils/migrations/0015_auto__add_contentstat__del_field_content_last_annotated__del_field_con.py=utf-8
encoding//src/ldt/ldt/ldt_utils/migrations/0017_correct_image_path.py=utf-8
+encoding//src/ldt/ldt/ldt_utils/views/json.py=utf-8
encoding//src/ldt/ldt/management/utils.py=utf-8
encoding//src/ldt/ldt/text/migrations/0001_initial.py=utf-8
encoding//src/ldt/ldt/user/migrations/0001_initial.py=utf-8
diff -r 1c0ac4068bbe -r b93c99226832 src/ldt/ldt/__init__.py
--- a/src/ldt/ldt/__init__.py Tue Jul 31 02:27:09 2012 +0200
+++ b/src/ldt/ldt/__init__.py Tue Jul 31 12:13:53 2012 +0200
@@ -1,4 +1,4 @@
-VERSION = (1, 14, 0, "final", 0)
+VERSION = (1, 15, 0, "final", 0)
def get_version():
diff -r 1c0ac4068bbe -r b93c99226832 src/ldt/ldt/ldt_utils/projectserializer.py
--- a/src/ldt/ldt/ldt_utils/projectserializer.py Tue Jul 31 02:27:09 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/projectserializer.py Tue Jul 31 12:13:53 2012 +0200
@@ -303,8 +303,7 @@
res = self.ldt_doc.xpath("/iri/annotations/content")
for content_node in res:
- content_id = content_node.attrib[u"id"]
-
+ content_id = content_node.attrib[u"id"]
if self.from_display and content_id not in self.display_contents_list:
continue
content = Content.objects.get(iri_id=content_id) #@UndefinedVariable
@@ -317,14 +316,11 @@
self.__parse_ensemble(ensemble_node, content)
if self.first_cutting and self.first_cutting not in self.display_cuttings_list:
-
cutting_node= self.ldt_doc.xpath('/iri/annotations/content/ensemble/decoupage[@id=\'%s\']' % self.first_cutting)[0]
ensemble_node = cutting_node.xpath('..')[0]
- content_node = ensemble_node.xpath('..')[0]
-
+ content_node = ensemble_node.xpath('..')[0]
iri_id = content_node.get("id")
- content = Content.objects.get(iri_id=iri_id)
-
+ content = Content.objects.get(iri_id=iri_id)
self.__parse_ensemble(ensemble_node, content, cutting_only=[cutting_node])
diff -r 1c0ac4068bbe -r b93c99226832 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/content_project_pagination.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/content_project_pagination.html Tue Jul 31 02:27:09 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/content_project_pagination.html Tue Jul 31 12:13:53 2012 +0200
@@ -1,42 +1,26 @@
{% load front_tags %}
{% if nb_pages %}
- {% comment %}
- alors ? : {{begin}} - {{middle}} - {{end}} - nb_pages = {{nb_pages}}
+ {% comment %}alors ? : {{begin}} - {{middle}} - {{end}} - nb_pages = {{nb_pages}}
alors ? : nb_pages = {{nb_pages}} - range = {{nb_pages|get_range}} - cur_page_nb = {{cur_page_nb}}
{% endcomment %}
{% if 0 < cur_page_nb %}<< {% endif %}
{% for i in begin %}
- {% if i == cur_page_nb %}
- {{i|add:'1'}}
- {% else %}
- {{i|add:'1'}}
- {% endif %}
-
+ {% if i == cur_page_nb %}{{i|add:'1'}}{% else %}{{i|add:'1'}}{% endif %}
{% endfor %}
{% if middle %}
- ...
+ ...
{% for i in middle %}
- {% if i == cur_page_nb %}
- {{i|add:'1'}}
- {% else %}
- {{i|add:'1'}}
- {% endif %}
-
+ {% if i == cur_page_nb %}{{i|add:'1'}}{% else %}{{i|add:'1'}}{% endif %}
{% endfor %}
{% endif %}
{% if end %}
- ...
+ ...
{% for i in end %}
- {% if i == cur_page_nb %}
- {{i|add:'1'}}
- {% else %}
- {{i|add:'1'}}
- {% endif %}
-
+ {% if i == cur_page_nb %}{{i|add:'1'}}{% else %}{{i|add:'1'}}{% endif %}
{% endfor %}
{% endif %}
{% if cur_page_nb|add:'1' < nb_pages %}>>{% endif %}
-
{% endif %}
+
diff -r 1c0ac4068bbe -r b93c99226832 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html Tue Jul 31 02:27:09 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html Tue Jul 31 12:13:53 2012 +0200
@@ -2,10 +2,21 @@
{% load thumbnail %}
{% load front_tags %}
+
+ - {% if tag_cloud|length > 0 %}{% trans 'All categories' %}{% endif %}{% if current_content_tag %}{% if current_content_tag != "" %} > {{current_content_tag}} [x]{% endif %}{% endif %}
{% if nb_ct_pages %}
- {% load navigation %}{% build_pagination nb_ct_pages current_content_page "contents_page clickable" %}
+ - {% load navigation %}{% build_pagination nb_ct_pages current_content_page "contents_page clickable" %}
{% endif %}
+
+{% if tag_cloud|length > 0 %}
+
+ {% for t in tag_cloud %}
+ {{t.name}}{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+
{% endif %}
+
+
diff -r 1c0ac4068bbe -r b93c99226832 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Tue Jul 31 02:27:09 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Tue Jul 31 12:13:53 2012 +0200
@@ -3,9 +3,10 @@
{% load front_tags %}
{% if nb_pj_pages %}
- {% load navigation %}{% build_pagination nb_pj_pages current_project_page "projects_page clickable" %}
+
+ - {% load navigation %}{% build_pagination nb_pj_pages current_project_page "projects_page clickable" %}
-
+
{% endif %}