Display powered_by_reddit logo in https if on a secure domain.

This commit is contained in:
Max Goodman
2011-06-01 10:21:52 -07:00
parent 20069e7c93
commit c6f0b6ffa8

View File

@@ -21,6 +21,7 @@
################################################################################
<%!
from r2.lib.template_helpers import s3_https_if_secure
from r2.lib.strings import strings
import datetime
%>
@@ -36,7 +37,7 @@
%if g.domain != "reddit.com":
<!-- http://code.reddit.com/LICENSE see Exhibit B -->
<a href="http://code.reddit.com" style="text-align:center;display:block">
<img src="http://sp.reddit.com/powered_by_reddit.png"
<img src="${s3_https_if_secure("http://sp.reddit.com/powered_by_reddit.png")}"
style="width:140px; height:47px; margin-bottom: 5px"/>
</a>
%endif