mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Add link flair styling to .embed pages.
This commit is contained in:
committed by
Neil Williams
parent
ef951d4be5
commit
876e851441
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user