toggling is broken within tabs, add a third hazenut for debugging purposes
[myslice.git] / trash / sampleviews.py
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
6
7 from unfold.prelude import Prelude
8
9 from myslice.viewutils import topmenu_items, the_user
10 # tmp
11 from myslice.viewutils import lorem, hard_wired_slice_names
12
13 @login_required
14 def tab_view (request):
15     prelude=Prelude( js_files='js/bootstrap.js', css_files='css/bootstrap.css')
16     prelude_env = prelude.prelude_env()
17
18     tab_env = {'title':'Page for playing with Tabs',
19                'topmenu_items': topmenu_items('tab',request),
20                'username':the_user (request),
21                'lorem': lorem,                                
22                }
23     tab_env.update (prelude_env)
24     return render_to_response ('view-tab.html', tab_env,
25                                context_instance=RequestContext(request))
26
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),
32                                 'lorem':lorem,
33                                 },
34                                context_instance=RequestContext(request))
35