refactored web / all-app now linked in app. no wnframework in website

This commit is contained in:
Rushabh Mehta
2012-12-14 16:39:27 +05:30
parent c248e2769e
commit 173a0fd4b7
11 changed files with 139 additions and 86 deletions

View File

@@ -5,28 +5,12 @@
{% block header %}
{{ super() }}
<script>
window.page_name = "{{ name }}";
$(document).bind('app_ready', function() {
var _page = new wn.views.Page(window.page_name);
// page script
{% block javascript %}
{% endblock %}
// trigger onload
_page.trigger('onload');
// activate page
wn.container.change_to(window.page_name);
});
{% block javascript %}
{% endblock %}
</script>
{% block css %}
{% if insert_style %}
{% if insert_style %}
<style>{{ css }}</style>
{% endif %}
{% endblock %}
{% endblock %}

View File

@@ -0,0 +1 @@
{% extends "html/page.html" %}