# variables that will get passed to the view-plugin.html template
template_env = {}
- # define 'unfold1_main' to the template engine
- template_env [ 'unfold1_main' ] = main_plugin.render(request)
+ # define 'unfold2_main' to the template engine
+ template_env [ 'unfold2_main' ] = main_plugin.render(request)
# more general variables expected in the template
template_env [ 'title' ] = 'Test view for a full request cycle'
query=slices_query,
)
# likewise but on the side view
- template_env [ 'unfold1_margin' ] = related_plugin.render (request)
+ template_env [ 'unfold2_margin' ] = related_plugin.render (request)
# add our own css in the mix
page.add_css_files ( 'css/dashboard.css')
title='QuickFilter in main content',
criterias=quickfilter_criterias,
) ] )
- # define 'unfold1_main' to the template engine
- template_env [ 'unfold1_main' ] = main_plugin.render(request)
+ # define 'unfold2_main' to the template engine
+ template_env [ 'unfold2_main' ] = main_plugin.render(request)
##########
related_plugin = StaticList (page=page,
list=hard_wired_slice_names,
header='Slices')
# likewise but on the side view
- template_env [ 'unfold1_margin' ] = related_plugin.render (request)
+ template_env [ 'unfold2_margin' ] = related_plugin.render (request)
# more general variables expected in the template
template_env [ 'title' ] = 'Test Plugin View'
# variables that will get passed to the view-plugin.html template
template_env = {}
- # define 'unfold1_main' to the template engine
+ # define 'unfold2_main' to the template engine
template_env [ 'unfold1_main' ] = main_plugin.render(request)
# more general variables expected in the template
### query=main_query,
### )
### # likewise but on the side view
-### template_env [ 'unfold1_margin' ] = related_plugin.render (request)
+### template_env [ 'unfold2_margin' ] = related_plugin.render (request)
###
### # add our own css in the mix
### page.add_css_files ( 'css/hazelnut.css')
# define {js,css}_{files,chunks}
prelude_env = page.prelude_env()
template_env.update(prelude_env)
- return render_to_response ('view-plugin.html',template_env,
+ result=render_to_response ('view-slice.html',template_env,
context_instance=RequestContext(request))
+ print 'result=',result
+ return result
-{% extends 'layout-unfold1.html' %}
+{% extends 'layout-unfold2.html' %}
-{% block unfold1_main %}
-{{ unfold1_main|safe }}
-{% endblock unfold1_main %}
+{% block unfold2_main %}
+{{ unfold2_main|safe }}
+{% endblock unfold2_main %}
-{% block unfold1_margin %}
-{{ unfold1_margin|safe }}
-{% endblock unfold1_margin %}
+{% block unfold2_margin %}
+{{ unfold2_margin|safe }}
+{% endblock unfold2_margin %}
-{% extends 'layout-unfold1.html' %}
+{% extends 'layout-unfold2.html' %}
-{% block unfold1_main %}
+{% block unfold2_main %}
{% insert_str prelude "css/sample.css" %}
<div id='scrollDiv3'> scroll3 area {{ lorem }} </div>
<div id='scrollDiv4'> scroll4 area {{ lorem }} {{ lorem }} {{ lorem }} </div>
<!--</div>-->
-{% endblock unfold1_main %}
+{% endblock unfold2_main %}
-{% block unfold1_margin %}
+{% block unfold2_margin %}
<div class="foo">
<ul class="nav nav-tabs nav-stacked">
<li><a href="#scrollDiv1" data-toggle="tab"><!--<i class="icon-chevron-right"/>--> scroll1 </a></li>
<li><a href="#scrollDiv4" data-toggle="tab"> scroll4 </a></li>
</ul>
</div>
-{% endblock unfold1_margin %}
+{% endblock unfold2_margin %}
--- /dev/null
+{% extends 'layout-unfold1.html' %}
+
+{% block unfold1_main %}
+{{ unfold1_main|safe }}
+{% endblock unfold1_main %}
-{% extends 'layout-unfold1.html' %}
+{% extends 'layout-unfold2.html' %}
-{% block unfold1_main %}
+{% block unfold2_main %}
{% insert_str prelude "css/sample.css" %}
{% insert prelude_js %}
decima et quinta decima. Eodem modo typi, qui nunc nobis videntur
parum clari, fiant sollemnes in futurum.
</div>
-{% endblock unfold1_main %}
+{% endblock unfold2_main %}
-{% block unfold1_margin %}
+{% block unfold2_margin %}
This text is shorter on purpose Lorem <span class='bold'>ipsum
dolor</span> sit amet, consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo
consequat.
-{% endblock unfold1_margin %}
+{% endblock unfold2_margin %}
# env['js_chunks']= '\n'.join(self.js_chunks)
# env['css_chunks']='\n'.join(self.css_chunks)
# return env
- # together with this in layout-unfold1.html
+ # together with this in layout-unfold2.html
# {% for js_file in js_files %} {% insert_str prelude js_file %} {% endfor %}
# {% for css_file in css_files %} {% insert_str prelude css_file %} {% endfor %}
# somehow however this would not work too well,
/* this relates to the unfold-layout1 template */
-#unfold1-main {
+#unfold2-main {
}
-#unfold1-margin {
+#unfold2-margin {
padding: 10;
background-color: #fff2ff;
}
-{# This is required by insert_above #}{% insert_handler %}
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+{# This is required by insert_above #}{% insert_handler %}<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html lang="en"> <head>
<title> MySlice - {{ title }} </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">{# In case we need to add raw css code #}{% container prelude_css %}</style>
{{ header_prelude }}
</head>{# let's add these ones no matter what #}
-{% insert_str prelude "css/layout-unfold1.css" %}
+{# not yet needed {% insert_str prelude "css/layout-unfold1.css" %} #}
{% insert_str prelude "js/jquery.js" %}
{% insert_str prelude "js/init-all-plugins.js" %}
<body>
{% endblock topmenu %}
<div class="container-fluid">
<div class="row-fluid">
- <div id="unfold1-main" class="span9 columns">
+ <div id="unfold1-main" class="span12 columns">
{% block unfold1_main %}
"The main content area (define block 'unfold1_main')"
{% endblock unfold1_main %}
- </div><!--span9-->
- <div id='unfold1-margin' class='span3'>
- {% block unfold1_margin %}
- "The related content area (define block 'related_main')"
- {% endblock unfold1_margin %}
- </div><!--span3-->
+ </div><!--span12-->
</div><!--raw-fluid-->
</div><!--container-fluid-->
{% endblock container %}
--- /dev/null
+{# This is required by insert_above #}{% insert_handler %}<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html lang="en"> <head>
+<title> MySlice - {{ title }} </title>
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+{# This is where insert_str will end up #}{% media_container prelude %}
+<script type="text/javascript"> {# raw js code - use {% insert prelude_js %} ... {% endinsert %} #} {% container prelude_js %}</script>
+<style type="text/css">{# In case we need to add raw css code #}{% container prelude_css %}</style>
+{{ header_prelude }}
+</head>{# let's add these ones no matter what #}
+{% insert_str prelude "css/layout-unfold2.css" %}
+{% insert_str prelude "js/jquery.js" %}
+{% insert_str prelude "js/init-all-plugins.js" %}
+<body>
+{% block container %}
+<div id="container">
+ {% block topmenu %}
+ {% include 'widget-topmenu.html' %}
+ {% endblock topmenu %}
+<div class="container-fluid">
+ <div class="row-fluid">
+ <div id="unfold2-main" class="span9 columns">
+ {% block unfold2_main %}
+ "The main content area (define block 'unfold2_main')"
+ {% endblock unfold2_main %}
+ </div><!--span9-->
+ <div id='unfold2-margin' class='span3'>
+ {% block unfold2_margin %}
+ "The related content area (define block 'related_main')"
+ {% endblock unfold2_margin %}
+ </div><!--span3-->
+ </div><!--raw-fluid-->
+</div><!--container-fluid-->
+{% endblock container %}
+</body>
+</html>
-{% extends 'layout-unfold1.html' %}
+{% extends 'layout-unfold2.html' %}
-{% block unfold1_margin %}
+{% block unfold2_margin %}
{% include 'widget-login.html' %}
-{% endblock unfold1_margin %}
+{% endblock unfold2_margin %}
-{% block unfold1_main %}
+{% block unfold2_main %}
<code> This page is currently connected to two authentication systems:</code>
<ul>
<li> A manifold server, located at <code>{{ manifold_url }}</code>, (configured in <code>myslice/config.py</code>), and</li>
{% endfor %}
</ul>
</li></ul>
-{% endblock unfold1_main %}
+{% endblock unfold2_main %}