1 # Create your views here.
2 from django.core.context_processors import csrf
3 from django.template import RequestContext
4 from django.shortcuts import render_to_response
5 from django.contrib.auth.decorators import login_required
7 from unfold.prelude import Prelude
9 from myslice.viewutils import topmenu_items, the_user
11 from myslice.viewutils import lorem, hard_wired_slice_names
14 def tab_view (request):
15 prelude=Prelude( js_files='js/bootstrap.js', css_files='css/bootstrap.css')
16 prelude_env = prelude.prelude_env()
18 tab_env = {'title':'Page for playing with Tabs',
19 'topmenu_items': topmenu_items('tab',request),
20 'username':the_user (request),
23 tab_env.update (prelude_env)
24 return render_to_response ('view-tab.html', tab_env,
25 context_instance=RequestContext(request))
27 def scroll_view (request):
28 return render_to_response ('view-scroll.html',
29 {'title':'Toy page for scrolling',
30 'topmenu_items': topmenu_items('scroll',request),
31 'username':the_user (request),
34 context_instance=RequestContext(request))