subreddit images: Remove some cruft left over from the old system.

All images in the new system are guaranteed to be proper URLs by the
migration and way the new system works.
This commit is contained in:
Neil Williams
2013-09-16 15:38:57 -07:00
parent c48b9d4871
commit 48b4784490

View File

@@ -257,19 +257,6 @@
<ul id="image-preview-list" class="image-list">
<%def name="make_li(name='', img=None, prototype=False)">
<li ${"style='display:none'" if img is None else ""}>
<%
if img is not None:
if isinstance(img, int):
bucket = g.s3_old_thumb_bucket
baseurl = "http://%s" % (bucket)
if g.s3_media_direct:
baseurl = "http://%s/%s" % (s3_direct_url, bucket)
img = "%s/%s_%d.png" % \
(baseurl, c.site._fullname, img)
else:
img = static('kill.png')
%>
<a href="${img}" class="preview">
<img id="img-preview-${name}" src="${img}"
alt="Image ${name}" title="click to preview"/>