From dade89cd8a9ad8c00203108afd6829612ea5ecae Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 14 Feb 2012 12:35:20 +0530 Subject: [PATCH] box_titles, erang images, etc --- itf/emailer/models.py | 3 ++- itf/frontpage/models.py | 1 + itf/static/css/modules/emailer.css | 5 ++++- itf/static/css/noel/inner-details.css | 4 ++++ itf/templates/emailer/email.html | 6 +++--- itf/templates/modules/emailer/emailerissue.html | 6 +++--- itf/templates/noel/index.html | 2 +- itf/tmp/update.py | 16 ++++++++++++++++ 8 files changed, 34 insertions(+), 9 deletions(-) create mode 100644 itf/tmp/update.py diff --git a/itf/emailer/models.py b/itf/emailer/models.py index 3ead1d9..009952a 100755 --- a/itf/emailer/models.py +++ b/itf/emailer/models.py @@ -76,7 +76,8 @@ class ArticleImage(models.Model): def getHTML(self, typ): thumb = self.getThumbPath("x380") caption = self.caption - return "" % (caption, thumb,) + return "


%s

" % (caption, thumb, caption) +# return "" % (caption, thumb,) class Weblink(models.Model): diff --git a/itf/frontpage/models.py b/itf/frontpage/models.py index 418c079..f0b053a 100755 --- a/itf/frontpage/models.py +++ b/itf/frontpage/models.py @@ -20,6 +20,7 @@ class SliderBox(models.Model): normalText = models.CharField(max_length=256, blank=True) url = models.CharField(max_length=128, blank=True) order = models.IntegerField(default=1) + imageLeft = models.IntegerField(default=0) imageTop = models.IntegerField(default=0) is_displayed = models.BooleanField(default=True) diff --git a/itf/static/css/modules/emailer.css b/itf/static/css/modules/emailer.css index b66653f..300a55b 100755 --- a/itf/static/css/modules/emailer.css +++ b/itf/static/css/modules/emailer.css @@ -110,6 +110,9 @@ cursor: pointer; /* CONTENT */ +#bottomRight { + font-size: 13px !important; +} #contentEmailer { width:570px; @@ -172,7 +175,7 @@ cursor: pointer; .articleAuthor { font-family:"Century Gothic", Arial, Helvetica, sans-serif; - font-size:12px; + font-size:13px; padding-right:12px; float:right; } diff --git a/itf/static/css/noel/inner-details.css b/itf/static/css/noel/inner-details.css index e47292b..bbcb102 100755 --- a/itf/static/css/noel/inner-details.css +++ b/itf/static/css/noel/inner-details.css @@ -74,6 +74,10 @@ display:block;} {display:none;} /* FORMS FOR E-RANG */ +#comment_form { + margin-top: 24px; +} + #commentWrapper {color:#888;} diff --git a/itf/templates/emailer/email.html b/itf/templates/emailer/email.html index 14c65b6..59ae2e0 100755 --- a/itf/templates/emailer/email.html +++ b/itf/templates/emailer/email.html @@ -42,7 +42,7 @@

Web Links

{% for weblink in weblinks %} -

{{ weblink.title|truncatewords:6 }}

+

• {{ weblink.box_title }}

{% endfor %}

More »

@@ -51,7 +51,7 @@

Bulletin Board

{% for bbitem in bbitems %} -

{{ bbitem.title|truncatewords:6 }}

+

• {{ bbitem.box_title }}

{% endfor %}

More »

@@ -115,7 +115,7 @@

BULLETIN BOARD

{% for bbitem in bbitems %} -

{{ bbitem.title }}

+

{{ bbitem.title }}

{{ bbitem.text|markdown }}
{% endfor %} diff --git a/itf/templates/modules/emailer/emailerissue.html b/itf/templates/modules/emailer/emailerissue.html index 0e96468..f7aa298 100755 --- a/itf/templates/modules/emailer/emailerissue.html +++ b/itf/templates/modules/emailer/emailerissue.html @@ -36,7 +36,7 @@

WEB LINKS

{% for weblink in weblinks %} -

{{ weblink.title|truncatewords:6 }}

+

• {{ weblink.box_title }}

{% endfor %}

More »

@@ -44,7 +44,7 @@

BULLETIN BOARD

{% for bbitem in bbitems %} -

{{ bbitem.title|truncatewords:6 }}

+

• {{ bbitem.box_title }}

{% endfor %}

More »

@@ -85,7 +85,7 @@ diff --git a/itf/templates/noel/index.html b/itf/templates/noel/index.html index ce98169..fbce1fc 100755 --- a/itf/templates/noel/index.html +++ b/itf/templates/noel/index.html @@ -77,7 +77,7 @@ arrow-right