Add link flair styling to .embed pages.

This commit is contained in:
Logan Hanks
2012-04-13 11:03:22 -07:00
committed by Neil Williams
parent ef951d4be5
commit 876e851441

View File

@@ -27,6 +27,13 @@
%>
<%inherit file="printable.htmllite" />
<%def name="flair()">
<span class="linkflair"
${optionalstyle("color: #545454; background-color: #f5f5f5; border: 1px solid #dedede; display: inline-block; font-size: x-small; margin-right: 0.5em; padding: 0 2px;")}>
${thing.flair_text}
</span>
</%def>
<%def name="entry()">
<%
from r2.lib.strings import Score
@@ -44,7 +51,7 @@
%endif
>
%if c.site.link_flair_position == 'left' and thing.flair_text:
<span class="linkflair">${thing.flair_text}</span>
${flair()}
%endif
<a href="${thing.href_url}" class="reddit-link-title"
${optionalstyle("text-decoration:none;color:#336699;font-size:small;")}
@@ -65,7 +72,7 @@
${thing.title}
</a>
%if c.site.link_flair_position == 'right' and thing.flair_text:
<span class="linkflair">${thing.flair_text}</span>
${flair()}
%endif
%if not expanded:
<br />