box_titles, erang images, etc
This commit is contained in:
parent
6fc2ac7664
commit
dade89cd8a
|
@ -76,7 +76,8 @@ class ArticleImage(models.Model):
|
||||||
def getHTML(self, typ):
|
def getHTML(self, typ):
|
||||||
thumb = self.getThumbPath("x380")
|
thumb = self.getThumbPath("x380")
|
||||||
caption = self.caption
|
caption = self.caption
|
||||||
return "<img title='%s' src='%s' style='display:block;margin:0 auto;border:1px solid #f7c00c;' />" % (caption, thumb,)
|
return "<p style='text-align:center;margin-top:6px;margin-bottom:6px;'><img title='%s' src='%s' style='border:1px solid #f7c00c' /><br />%s</p>" % (caption, thumb, caption)
|
||||||
|
# return "<img title='%s' src='%s' style='display:block;margin:0 auto;border:1px solid #f7c00c;' />" % (caption, thumb,)
|
||||||
|
|
||||||
|
|
||||||
class Weblink(models.Model):
|
class Weblink(models.Model):
|
||||||
|
|
|
@ -20,6 +20,7 @@ class SliderBox(models.Model):
|
||||||
normalText = models.CharField(max_length=256, blank=True)
|
normalText = models.CharField(max_length=256, blank=True)
|
||||||
url = models.CharField(max_length=128, blank=True)
|
url = models.CharField(max_length=128, blank=True)
|
||||||
order = models.IntegerField(default=1)
|
order = models.IntegerField(default=1)
|
||||||
|
imageLeft = models.IntegerField(default=0)
|
||||||
imageTop = models.IntegerField(default=0)
|
imageTop = models.IntegerField(default=0)
|
||||||
is_displayed = models.BooleanField(default=True)
|
is_displayed = models.BooleanField(default=True)
|
||||||
|
|
||||||
|
|
|
@ -110,6 +110,9 @@ cursor: pointer;
|
||||||
|
|
||||||
/* CONTENT */
|
/* CONTENT */
|
||||||
|
|
||||||
|
#bottomRight {
|
||||||
|
font-size: 13px !important;
|
||||||
|
}
|
||||||
|
|
||||||
#contentEmailer {
|
#contentEmailer {
|
||||||
width:570px;
|
width:570px;
|
||||||
|
@ -172,7 +175,7 @@ cursor: pointer;
|
||||||
|
|
||||||
.articleAuthor {
|
.articleAuthor {
|
||||||
font-family:"Century Gothic", Arial, Helvetica, sans-serif;
|
font-family:"Century Gothic", Arial, Helvetica, sans-serif;
|
||||||
font-size:12px;
|
font-size:13px;
|
||||||
padding-right:12px;
|
padding-right:12px;
|
||||||
float:right;
|
float:right;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,6 +74,10 @@ display:block;}
|
||||||
{display:none;}
|
{display:none;}
|
||||||
|
|
||||||
/* FORMS FOR E-RANG */
|
/* FORMS FOR E-RANG */
|
||||||
|
#comment_form {
|
||||||
|
margin-top: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
#commentWrapper
|
#commentWrapper
|
||||||
{color:#888;}
|
{color:#888;}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<td style="width:250px; background-color:#f7bd00; color:#fff; padding:10px;">
|
<td style="width:250px; background-color:#f7bd00; color:#fff; padding:10px;">
|
||||||
<p style="font-size:16px; text-align:center; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif;">Web Links</p>
|
<p style="font-size:16px; text-align:center; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif;">Web Links</p>
|
||||||
{% for weblink in weblinks %}
|
{% for weblink in weblinks %}
|
||||||
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;">{{ weblink.title|truncatewords:6 }}</p>
|
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;">• {{ weblink.box_title }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<p style="text-align:right;"><a href="#weblinks" style="color:#fff; text-decoration:none; font-size:12px;">More »</a></p>
|
<p style="text-align:right;"><a href="#weblinks" style="color:#fff; text-decoration:none; font-size:12px;">More »</a></p>
|
||||||
</td>
|
</td>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
<td style="width:250px; background-color:#f7bd00; color:#fff; padding:10px;">
|
<td style="width:250px; background-color:#f7bd00; color:#fff; padding:10px;">
|
||||||
<p style="font-size:16px; text-align:center; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif;">Bulletin Board</p>
|
<p style="font-size:16px; text-align:center; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif;">Bulletin Board</p>
|
||||||
{% for bbitem in bbitems %}
|
{% for bbitem in bbitems %}
|
||||||
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;">{{ bbitem.title|truncatewords:6 }}</p>
|
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;">• {{ bbitem.box_title }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<p style="text-align:right;"><a href="#bbitems" style="color:#fff; text-decoration:none; font-size:12px;">More »</a></p>
|
<p style="text-align:right;"><a href="#bbitems" style="color:#fff; text-decoration:none; font-size:12px;">More »</a></p>
|
||||||
</td>
|
</td>
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
<td style="width:580px; margin:10px 0 10px 0;">
|
<td style="width:580px; margin:10px 0 10px 0;">
|
||||||
<p style="padding:8px; margin-left:10px; margin-top: 4px;background-color:#f7bd00; color:#fff; font-size:24px; font-family:'Century Gothic', Arial, Helvetica, sans-serif;"><a name="bbitems"></a>BULLETIN BOARD</p>
|
<p style="padding:8px; margin-left:10px; margin-top: 4px;background-color:#f7bd00; color:#fff; font-size:24px; font-family:'Century Gothic', Arial, Helvetica, sans-serif;"><a name="bbitems"></a>BULLETIN BOARD</p>
|
||||||
{% for bbitem in bbitems %}
|
{% for bbitem in bbitems %}
|
||||||
<h2 style="font-family:Arial;font-size:16px;padding-left:10px;color:#888;margin-top:4px;margin-bottom:4px;font-weight:normal;">{{ bbitem.title }}</h2>
|
<h2 style="font-family:Arial;font-size:16px;padding-left:10px;color:#F7BD00;;margin-top:4px;margin-bottom:4px;font-weight:bold;">{{ bbitem.title }}</h2>
|
||||||
<div style="color:#888; font-family:Arial, Helvetica, sans-serif; font-size:13px; padding-left: 10px;margin-bottom:16px;line-height:17px;">{{ bbitem.text|markdown }}</div>
|
<div style="color:#888; font-family:Arial, Helvetica, sans-serif; font-size:13px; padding-left: 10px;margin-bottom:16px;line-height:17px;">{{ bbitem.text|markdown }}</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<div class="contentBoxes">
|
<div class="contentBoxes">
|
||||||
<h1>WEB LINKS</h1>
|
<h1>WEB LINKS</h1>
|
||||||
{% for weblink in weblinks %}
|
{% for weblink in weblinks %}
|
||||||
<p>{{ weblink.title|truncatewords:6 }}</p>
|
<p>• {{ weblink.box_title }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<p class="contentBoxesMore"><a href="#weblinks">More »</a></p>
|
<p class="contentBoxesMore"><a href="#weblinks">More »</a></p>
|
||||||
</div><!-- CONTENT BOXES CLOSING -->
|
</div><!-- CONTENT BOXES CLOSING -->
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
<div class="contentBoxes">
|
<div class="contentBoxes">
|
||||||
<h1>BULLETIN BOARD</h1>
|
<h1>BULLETIN BOARD</h1>
|
||||||
{% for bbitem in bbitems %}
|
{% for bbitem in bbitems %}
|
||||||
<p>{{ bbitem.title|truncatewords:6 }}</p>
|
<p>• {{ bbitem.box_title }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<p class="contentBoxesMore"><a href="#bbitems">More »</a></p>
|
<p class="contentBoxesMore"><a href="#bbitems">More »</a></p>
|
||||||
</div><!-- CONTENT BOXES CLOSING -->
|
</div><!-- CONTENT BOXES CLOSING -->
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
<div class="contentLinks">
|
<div class="contentLinks">
|
||||||
<a name="bbitems"></a><h1>BULLETIN BOARD</h1>
|
<a name="bbitems"></a><h1>BULLETIN BOARD</h1>
|
||||||
{% for bbitem in bbitems %}
|
{% for bbitem in bbitems %}
|
||||||
<h2>{{ bbitem.title }}</h2>
|
<h2 class="orange">{{ bbitem.title }}</h2>
|
||||||
{{ bbitem.text|markdown }}
|
{{ bbitem.text|markdown }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div><!-- WEB LINKS CLOSING -->
|
</div><!-- WEB LINKS CLOSING -->
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<img src="/static/images/noel/arrow-rt.png" width="27" height="39" alt="arrow-right" id="arrowRight">
|
<img src="/static/images/noel/arrow-rt.png" width="27" height="39" alt="arrow-right" id="arrowRight">
|
||||||
<ul id="sliderTabs">
|
<ul id="sliderTabs">
|
||||||
{% for b in boxes %}
|
{% for b in boxes %}
|
||||||
<li class="tab" style="background-image:url('{{b.image.url}}');background-position:0px {{b.imageTop}}px;">
|
<li class="tab" style="background-image:url('{{b.image.url}}');background-position:{{b.imageLeft}}px {{b.imageTop}}px;">
|
||||||
<h4 class="tabHeader">{% autoescape off %} {{ b.title|format_title }} {% endautoescape %}</h4>
|
<h4 class="tabHeader">{% autoescape off %} {{ b.title|format_title }} {% endautoescape %}</h4>
|
||||||
<div class="textTab">
|
<div class="textTab">
|
||||||
<p><span class="boldText">{{ b.boldText }}</span> {{ b.normalText }} <a href="{{ b.url }}" class="moreTab"> More<img src="/static/images/noel/more-next.jpg" width="16" height="9" class="imageMore" /></a>
|
<p><span class="boldText">{{ b.boldText }}</span> {{ b.normalText }} <a href="{{ b.url }}" class="moreTab"> More<img src="/static/images/noel/more-next.jpg" width="16" height="9" class="imageMore" /></a>
|
||||||
|
|
16
itf/tmp/update.py
Normal file
16
itf/tmp/update.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
from emailer.models import *
|
||||||
|
from frontpage.models import *
|
||||||
|
|
||||||
|
def box_titles():
|
||||||
|
for w in Weblink.objects.all():
|
||||||
|
w.box_title = w.title
|
||||||
|
w.save()
|
||||||
|
for b in BulletinBoardItem.objects.all():
|
||||||
|
b.box_title = b.title
|
||||||
|
b.save()
|
||||||
|
|
||||||
|
|
||||||
|
def imagelefts():
|
||||||
|
for s in SliderBox.objects.all():
|
||||||
|
s.imageLeft = 0
|
||||||
|
s.save()
|
Loading…
Reference in New Issue
Block a user