# compute an 'optionstr' from the set of available settings/options as a json string
# that gets passed to jquery somehow
# see the bottom of
- result = render_to_string ('plugin-wrap.html',
+ result = render_to_string ('widget-plugin.html',
{'uuid':uuid, 'title':title,
'visible':self.is_visible(),
'hidable':self.is_hidable(),
from plugins.simplelist import SimpleList
+from slice.views import menu_items, the_user
+
def test_plugin_view (request):
test_plugin = SimpleList (visible=True, hidable=True)
print plugin_content
print '--------------------'
- return render_to_response ('test-plugin.html',
- {'content_main' : plugin_content},
+ return render_to_response ('view-plugin.html',
+ {'title': 'Test Plugin View',
+ 'menu_items': menu_items('plugin', request),
+ 'content_main' : plugin_content,
+ 'username' : the_user (request),
+ },
context_instance=RequestContext(request))
standard_menu_items = [ { 'label':'Slice view', 'href': '/slice/'},
{ 'label':'Scroll view', 'href': '/scroll/'},
{ 'label':'Tab view', 'href': '/tab/'},
+ { 'label':'Mini plugin', 'href': '/plugin/'},
]
login_out_items = { False: { 'label':'Login', 'href':'/login/'},
--- /dev/null
+{% extends 'layout-myslice.html' %}
+
+{% block content_main %}
+{{ content_main }}
+{% endblock content_main %}