image sizing on erang
This commit is contained in:
parent
afb83c6ebe
commit
b038081804
|
@ -77,7 +77,7 @@ class ArticleImage(models.Model):
|
|||
return get_thumbnail(self.image, size).url
|
||||
|
||||
def getHTML(self, typ):
|
||||
thumb = self.getThumbPath("x380")
|
||||
thumb = self.getThumbPath("450x380")
|
||||
caption = self.caption
|
||||
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,)
|
||||
|
|
Loading…
Reference in New Issue
Block a user