mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
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:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user