From 6f08f6dcfe9759d135dcac983bbbf1da84b59f5d Mon Sep 17 00:00:00 2001 From: Karen Date: Wed, 10 Aug 2011 00:48:26 +0530 Subject: [PATCH] making new changes --- itf/frontpage/views.py | 7 +++++-- itf/static/css/noel/home.css | 13 ++++++------- itf/static/css/noel/main.css | 11 ++++++----- itf/templates/noel/index.html | 5 +++-- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/itf/frontpage/views.py b/itf/frontpage/views.py index 29f1413..477e1a0 100644 --- a/itf/frontpage/views.py +++ b/itf/frontpage/views.py @@ -6,8 +6,11 @@ import twitter from django.template import RequestContext def index(request): - tApi = twitter.Api() - statuses = tApi.GetUserTimeline(TWITTER_ID) + try: + tApi = twitter.Api() + statuses = tApi.GetUserTimeline(TWITTER_ID) + except: + statuses = [] boxes = SliderBox.objects.all() menuHeads = MenuHeading.objects.all() menus = [] diff --git a/itf/static/css/noel/home.css b/itf/static/css/noel/home.css index 2fb38b3..bbff9ee 100644 --- a/itf/static/css/noel/home.css +++ b/itf/static/css/noel/home.css @@ -150,19 +150,18 @@ clear:both;} {list-style:none;} #triangle -{font-size:12px; -color:#929292; -position:relative;}/*not showing in IE*/ +{font-size:18px; +color:#929292;} #triangleUp {position:absolute; -right:12px; -bottom:0px; +left:12px; +bottom:10px; cursor:pointer;} #triangleDown {position:absolute; -top:180px; +bottom:10px; right:12px; cursor:pointer;} @@ -226,7 +225,7 @@ font-size:14px; /*if someone increases their font size, then what?*/ color:#FFF; text-align:center; text-decoration:none; -padding:2px 3px 5px 3px; +padding:5px 3px 5px 3px; background-color:#feb200; /*fallback for old browsers*/ background:-moz-linear-gradient(top, #e77400 0%, #feb200); background:-webkit-gradient(linear, left top, left bottom, from(#e77400), to(#feb200)); /*w/o prefix not mentioned here for a reason???*/ diff --git a/itf/static/css/noel/main.css b/itf/static/css/noel/main.css index 9dc1afb..889249d 100644 --- a/itf/static/css/noel/main.css +++ b/itf/static/css/noel/main.css @@ -164,15 +164,16 @@ border-top-left-radius:8px; -webkit-box-shadow:0px -1px 3px #d4d4d4; box-shadow:0px -1px 3px #d4d4d4;}/*not converted to links*/ -#loginMenu li a, #loginMenu li a:link, #loginMenu li a:visited, #loginMenu li a:hover, #loginMenu li a:active +#loginMenu li a, #loginMenu li a:link, #loginMenu li a:visited, #loginMenu li a:active {text-decoration:none; color:#ff8400;} +#loginMenu li:hover +{color:#FFF; +background-color:#ff8400;} + #loginMenu li a:hover -{font-weight:bold; --moz-box-shadow:-4px -2px 8px #d4d4d4; --webkit-box-shadow:-4px -2px 8px #d4d4d4; -box-shadow:-4px -2px 8px #d4d4d4;} +{color:#FFF;} #woodPng {width:40%; diff --git a/itf/templates/noel/index.html b/itf/templates/noel/index.html index 604735a..b77fac5 100644 --- a/itf/templates/noel/index.html +++ b/itf/templates/noel/index.html @@ -51,14 +51,15 @@
-
-
+
+

EVENTS

+ Find