request context for inner page
This commit is contained in:
parent
39d51eccb0
commit
05d805c4bb
|
@ -6,14 +6,14 @@ from ox.django.decorators import login_required_json
|
||||||
from ox.django.shortcuts import render_to_json_response, get_object_or_404_json, json_response
|
from ox.django.shortcuts import render_to_json_response, get_object_or_404_json, json_response
|
||||||
from models import Panel
|
from models import Panel
|
||||||
import json
|
import json
|
||||||
|
from django.template import RequestContext
|
||||||
|
|
||||||
def mainPage(request):
|
def mainPage(request):
|
||||||
d = {'title': 'India Theatre Forum'}
|
d = {'title': 'India Theatre Forum'}
|
||||||
return render_to_response("noel/index.html", d)
|
return render_to_response("noel/index.html", d)
|
||||||
|
|
||||||
def innerPage(request):
|
def innerPage(request):
|
||||||
return render_to_response("noel/bestpractices.html")
|
return render_to_response("noel/bestpractices.html", RequestContext(request, {}))
|
||||||
|
|
||||||
def getPage(request):
|
def getPage(request):
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -21,7 +21,7 @@ def format_title(value):
|
||||||
words = v.split(splitter)
|
words = v.split(splitter)
|
||||||
l = len(words)
|
l = len(words)
|
||||||
if l > 1:
|
if l > 1:
|
||||||
boldWord = "<b>" + words[l - 1] + "</b>"
|
boldWord = "<span>" + words[l - 1] + "</span>"
|
||||||
return (splitter.join(words[:l-1]) + splitter + boldWord).upper()
|
return (splitter.join(words[:l-1]) + splitter + boldWord).upper()
|
||||||
else:
|
else:
|
||||||
return words[0].upper()
|
return words[0].upper()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user