From 03c5ba6e50339d7bc470eb6d7f051483eff1e96b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Fri, 26 Mar 2010 23:56:41 +0100 Subject: [PATCH 1/1] Mostly Javascript refactoring. --- .../wiki/templates/wiki/document_details.html | 228 ++--- apps/wiki/templates/wiki/history_panel.html | 24 + apps/wiki/urls.py | 2 + apps/wiki/views.py | 53 +- lib/vstorage.py | 2 +- lib/wlapi.py | 70 ++ platforma/settings.py | 14 +- platforma/static/css/history.css | 59 ++ platforma/static/css/master.css | 63 -- platforma/static/js/main.js | 904 ------------------ platforma/static/js/wiki/base.js | 58 ++ platforma/static/js/wiki/history.js | 92 ++ platforma/static/js/wiki/main.js | 361 +++++++ platforma/static/js/wiki/source_editor.js | 64 ++ platforma/static/js/wiki/wikiapi.js | 211 ++++ platforma/static/js/wiki/wysiwyg_editor.js | 416 ++++++++ platforma/static/js/{ => wiki}/xslt.js | 0 17 files changed, 1512 insertions(+), 1109 deletions(-) create mode 100644 apps/wiki/templates/wiki/history_panel.html create mode 100644 lib/wlapi.py create mode 100644 platforma/static/css/history.css delete mode 100644 platforma/static/js/main.js create mode 100644 platforma/static/js/wiki/base.js create mode 100644 platforma/static/js/wiki/history.js create mode 100644 platforma/static/js/wiki/main.js create mode 100644 platforma/static/js/wiki/source_editor.js create mode 100644 platforma/static/js/wiki/wikiapi.js create mode 100644 platforma/static/js/wiki/wysiwyg_editor.js rename platforma/static/js/{ => wiki}/xslt.js (100%) diff --git a/apps/wiki/templates/wiki/document_details.html b/apps/wiki/templates/wiki/document_details.html index c54ff150..75cf617e 100644 --- a/apps/wiki/templates/wiki/document_details.html +++ b/apps/wiki/templates/wiki/document_details.html @@ -1,122 +1,136 @@ {% extends "base.html" %} {% load toolbar_tags %} - {% block title %}{{ document.name }} - {{ block.super }}{% endblock %} - {% block extrahead %} - {% load compressed %} - {% compressed_css 'detail' %} +{% load compressed %} +{% compressed_css 'detail' %} {% endblock %} - {% block extrabody %} - - - {% compressed_js 'detail' %} + + +{% compressed_js 'detail' %} {% endblock %} - {% block maincontent %} -
-

Ładowanie

-
- -