From: Łukasz Rekucki 
Date: Mon, 28 Sep 2009 16:44:31 +0000 (+0200)
Subject: Merge branch 'zuber-view-refactor'
X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/9e0a0c89939a75eccb7b6ae925707d404b287b78?hp=9479037111e9b243268189874be167e6c445455f
Merge branch 'zuber-view-refactor'
---
diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py
index b30f2e78..591d4e90 100644
--- a/apps/api/handlers/library_handlers.py
+++ b/apps/api/handlers/library_handlers.py
@@ -175,6 +175,7 @@ class DocumentHandler(BaseHandler):
             'html_url': reverse('dochtml_view', args=[udoc.id,udoc.revision]),
             'text_url': reverse('doctext_view', args=[udoc.id,udoc.revision]),
             'dc_url': reverse('docdc_view', args=[udoc.id,udoc.revision]),
+            #'gallery_url': reverse('docdc_view', args=[udoc.id,udoc.revision]),
             'user_revision': udoc.revision,
             'public_revision': doc.revision,            
         }       
@@ -204,9 +205,6 @@ class DocumentHTMLHandler(BaseHandler):
         except RevisionNotFound:
             return response.EntityNotFound().django_response()
 
-
-
-
 #
 # Document Text View
 #
@@ -214,6 +212,7 @@ class DocumentHTMLHandler(BaseHandler):
 XINCLUDE_REGEXP = r"""<(?:\w+:)?include\s+[^>]*?href=("|')wlrepo://(?P 
     
-    
     {% load explorer_tags %}
-    {% for file in files %}
-    
{{ file|bookname }} 
+    
+    {% for file in filetree %}    
+        {% tree_part file %}            
     {% endfor %}
-     
diff --git a/project/templates/explorer/file_tree_part.html b/project/templates/explorer/file_tree_part.html
new file mode 100644
index 00000000..f65cf28a
--- /dev/null
+++ b/project/templates/explorer/file_tree_part.html
@@ -0,0 +1,13 @@
+{% load explorer_tags %}
+
+
+    {{ document.name|bookname }} 
+    {% if document.parts %}
+    
+        {% for part in document.parts %}
+        {% tree_part part %}
+        {% endfor %}
+     
+    {% endif %}
+ 
+
diff --git a/project/templates/wysiwyg.html b/project/templates/wysiwyg.html
index 409e4f25..ec6eaed3 100644
--- a/project/templates/wysiwyg.html
+++ b/project/templates/wysiwyg.html
@@ -1,42 +1,15 @@
 {% extends 'base.html' %}
 
-{% block extrahead %}
-
-{% endblock %}
-
 {% block maincontent %}
 
Wysiwyg editor 
 This part is not editable!
 
 
+ {% for a,b in listA,listB %}
+
+ {{ a }} / {{ b }}
+ {% endfor %}
+
 
 
Lorem ipsum  dolor sit amet, consectetur adipiscing elit.
     Suspendisse a urna eu enim rutrum elementum nec sed nibh. Quisque sed tortor
@@ -59,34 +32,4 @@
 
 
Donec semper tempus ante, eget gravida erat varius et. Suspendisse aliquam rutrum nunc ac pulvinar. Aliquam erat volutpat. Nulla consectetur ultricies imperdiet. Nulla tincidunt est vitae augue porttitor a faucibus odio facilisis. In nec nisl odio. Aliquam et libero tortor, eu tincidunt mi. Vivamus suscipit erat sed mi hendrerit fringilla. Integer iaculis tempus nulla, at egestas velit faucibus ut. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum vel massa enim. Aliquam erat volutpat. In ligula tortor, fermentum eu suscipit at, posuere vel nunc. Nullam nibh magna, sollicitudin at semper et, mattis ut quam. Curabitur accumsan semper elit ac posuere. Sed sit amet lorem tortor, vel porttitor justo. Fusce odio metus, bibendum ut bibendum sit amet, luctus a ipsum. 
 
-{% endblock %}
-
-{% block extrabody %}
-
 {% endblock %}
\ No newline at end of file