merged changes for arrows, etc.
This commit is contained in:
commit
39d51eccb0
12
itf/frontpage/context_processors.py
Normal file
12
itf/frontpage/context_processors.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from frontpage.models import MenuHeading, MenuItem
|
||||
|
||||
def menus(request):
|
||||
menuHeads = MenuHeading.objects.all()
|
||||
menus = []
|
||||
for m in menuHeads:
|
||||
d = {
|
||||
'name': m.name,
|
||||
'items': [{'name': item.name, 'url': item.url} for item in m.menuitem_set.all()]
|
||||
}
|
||||
menus.append(d)
|
||||
return {'menus': menus}
|
|
@ -26,4 +26,4 @@ def format_title(value):
|
|||
else:
|
||||
return words[0].upper()
|
||||
|
||||
register.filter("format_title")
|
||||
register.filter("format_title", format_title)
|
||||
|
|
|
@ -12,16 +12,7 @@ def index(request):
|
|||
except:
|
||||
statuses = []
|
||||
boxes = SliderBox.objects.all()
|
||||
menuHeads = MenuHeading.objects.all()
|
||||
menus = []
|
||||
for m in menuHeads:
|
||||
d = {
|
||||
'name': m.name,
|
||||
'items': [{'name': item.name, 'url': item.url} for item in m.menuitem_set.all()]
|
||||
}
|
||||
menus.append(d)
|
||||
return render_to_response("noel/index.html", RequestContext(request, {
|
||||
'tweets': statuses[0:5],
|
||||
'boxes': boxes,
|
||||
'menus': menus
|
||||
'boxes': boxes
|
||||
}))
|
||||
|
|
|
@ -85,6 +85,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
|
|||
"django.core.context_processors.i18n",
|
||||
"django.core.context_processors.media",
|
||||
"multilingual.context_processors.multilingual",
|
||||
"frontpage.context_processors.menus"
|
||||
)
|
||||
|
||||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% extends 'noel/base.html' %}
|
||||
{% load itftags %}
|
||||
|
||||
{% block title %}India Theatre Forum: Home {% endblock %}
|
||||
|
||||
|
@ -69,7 +70,7 @@
|
|||
<ul id="sliderTabs">
|
||||
{% for b in boxes %}
|
||||
<li class="tab" style="background-image:url('{{b.image.url}}');background-position:0px {{b.imageTop}}px;">
|
||||
<h4 class="tabHeader">{{ b.title }}</h4>
|
||||
<h4 class="tabHeader">{% autoescape off %} {{ b.title|format_title }} {% endautoescape %}</h4>
|
||||
<div class="textTab">
|
||||
<p><span class="boldText">{{ b.boldText }}</span> {{ b.normalText }}</p>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
<a href="" class="registerLink">Forgot your Password? </a>
|
||||
<a href="" class="registerLink">New Here? Register Now!</a>
|
||||
<a href="/accounts/register" class="registerLink">New Here? Register Now!</a>
|
||||
|
||||
</form>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user