request context for inner page

This commit is contained in:
Karen 2011-08-11 16:28:39 +05:30
parent 39d51eccb0
commit 05d805c4bb
2 changed files with 3 additions and 3 deletions

View File

@ -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 models import Panel
import json
from django.template import RequestContext
def mainPage(request):
d = {'title': 'India Theatre Forum'}
return render_to_response("noel/index.html", d)
def innerPage(request):
return render_to_response("noel/bestpractices.html")
return render_to_response("noel/bestpractices.html", RequestContext(request, {}))
def getPage(request):
'''

View File

@ -21,7 +21,7 @@ def format_title(value):
words = v.split(splitter)
l = len(words)
if l > 1:
boldWord = "<b>" + words[l - 1] + "</b>"
boldWord = "<span>" + words[l - 1] + "</span>"
return (splitter.join(words[:l-1]) + splitter + boldWord).upper()
else:
return words[0].upper()