File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+
4
+ < head >
5
+ {% include "cui/_head.html" %}
6
+ </ head >
7
+
8
+ < body >
9
+
10
+ < h1 > It works!</ h1 >
11
+
12
+ </ body >
Original file line number Diff line number Diff line change 24
24
from django .template .response import SimpleTemplateResponse
25
25
from django .conf import settings
26
26
27
- def render_cui (context ):
27
+ def render_cui (context , template = 'cui/cui.html' ):
28
28
context = context .copy ()
29
29
context ['STATIC_URL' ] = settings .STATIC_URL
30
30
context ['DEBUG' ] = settings .DEBUG
31
31
context ['ticket' ] = { 'id' : 'TICKET_ID' }
32
32
context ['in_devel' ] = True
33
- return SimpleTemplateResponse ('cui/cui.html' , context )
33
+ return SimpleTemplateResponse (template , context )
34
34
35
+ def cui_sandbox (request ):
36
+ '''Scaffolding to test various components of CUI.'''
37
+ return render_cui ({
38
+ 'in_local' : True ,
39
+ 'title' : 'CUI sandbox'
40
+ }, template = 'cui/sandbox.html' )
35
41
36
42
def cui_test (request ):
37
43
'''Scaffolding for candidate interface JS tests.'''
You can’t perform that action at this time.
0 commit comments