Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Update media URL functions for protocol-relative style.
This is part of a change to core to remove the separate domain for S3
HTTPS images for performance.
  • Loading branch information
spladug committed Nov 29, 2014
1 parent 4917e6a commit f1037c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reddit_gold/templates/goldinfopage.html
@@ -1,6 +1,6 @@
<%!
from r2.lib.strings import strings
from r2.lib.template_helpers import media_https_if_secure, static
from r2.lib.template_helpers import make_url_protocol_relative, static
%>
<%namespace file="less.html" import="less_stylesheet"/>
<%namespace file="utils.html" import="classes, _md"/>
Expand All @@ -16,7 +16,7 @@
%if img_url:
<a href="${img_url}">
%endif
<div class="sample"><img src="${media_https_if_secure(img_src)}" alt=""></div>
<div class="sample"><img src="${make_url_protocol_relative(img_src)}" alt=""></div>
%if img_url:
</a>
%endif
Expand All @@ -35,7 +35,7 @@
<%def name="partner_item(name, description_html, img_src)">
<a href="/gold/partners#${name}" target="_blank">
<div class="label-container"><span class="partner-label">${unsafe(description_html)}</span></div>
<div class="logo"><img src="${media_https_if_secure(img_src)}" alt="${name}"></div>
<div class="logo"><img src="${make_url_protocol_relative(img_src)}" alt="${name}"></div>
</a>
</%def>

Expand Down

0 comments on commit f1037c1

Please sign in to comment.