from unfold.page import Page
from manifold.manifoldquery import ManifoldQuery
+from plugins.raw.raw import Raw
from plugins.stack.stack import Stack
from plugins.tabs.tabs import Tabs
from plugins.lists.slicelist import SliceList
title="Slice view for %s"%slicename,
domid='thestack',
togglable=False,
- sons=[Tabs (
+ sons=[
+ Messages (
+ page=page,
+ title="Runtime messages",
+ domid="msgs-pre",
+ ),
+ Tabs (
page=page,
title="2 tabs : w/ and w/o checkboxes",
domid='thetabs',
togglable=False,
query=main_query,
),
- SensLabMap (
+ Raw (
+# SensLabMap (
page=page,
- title='3D view',
+ title='3D view (disabled)',
domid='smap',
- # tab's sons preferably turn this off
+# # tab's sons preferably turn this off
togglable=False,
- query=main_query,
+# query=main_query,
+ html="""<p class='well'>
+Thierry: I am commeting off the use of <button class="btn btn-danger">SensLabMap</button> which,
+ although rudimentarily ported to the django framework,
+causes a weird behaviour especially wrt scrolling.
+On my Mac <button class="btn btn-warning"> I cannot use the mouse to scroll</button> any longer
+if I keep this active, so for now it's disabled
+</p>""",
),
]),
- Hazelnut (
+ Hazelnut (
page=page,
title='not in tabs',
domid='standalone',
),
# you don't *have to* set a domid, but if you plan on using toggled=persistent then it's required
# because domid is the key for storing toggle status in the browser
- QueryCode (
+ QueryCode (
page=page,
title='xmlrpc code (toggled=False)',
query=main_query,
# domid='xmlrpc',
toggled=False,
),
- QuickFilter (
+ QuickFilter (
page=page,
title="QuickFilter - requires metadata (toggled=False)",
criterias=quickfilter_criterias,
domid='filters',
toggled=False,
),
- Messages (
+ Messages (
page=page,
- title="Runtime messages",
- domid="msgs",
+ title="Runtime messages (again)",
+ domid="msgs-post",
)
])
template_env [ 'unfold1_main' ] = main_plugin.render(request)
# more general variables expected in the template
- template_env [ 'title' ] = 'Test view for hazelnut'
+ template_env [ 'title' ] = 'Test view that combines various plugins'
# the menu items on the top
template_env [ 'topmenu_items' ] = topmenu_items('slice', request)
# so we can sho who is logged