Add NSFW indicator to links in compact listings.

This commit is contained in:
wal-f
2012-01-09 19:09:26 +10:30
committed by Max Goodman
parent e1d0e229a0
commit f02fba990b
3 changed files with 15 additions and 0 deletions

View File

@@ -213,6 +213,8 @@ body[orient="landscape"] > #topbar > h1 { margin-left: -125px; width: 250px; }
.link > .thing_options { font-size: x-small; margin: none; display: block; float: left; clear: left; margin: 2px 0px 0px 10px; }
.nsfw-warning { color: #ac3939; text-decoration: none; border: 0 none; }
/* Comment count */
.commentcount { float: right; margin: 5px; width: 45px; text-align: right; }

View File

@@ -683,6 +683,12 @@ body[orient="landscape"] > #topbar > h1 {
.link > .thing_options a{
}
.nsfw-warning {
color: #ac3939;
text-decoration: none;
border: 0 none;
}
/* Comment count */
.commentcount {
float: right;

View File

@@ -85,6 +85,13 @@
${thing.link_child.css_style}"></a>
%endif
<div class="tagline">
%if thing.nsfw:
<span class="nsfw-warning">
<acronym title="${_('Adult content: Not Safe For Work')}">
${_("NSFW")}
</acronym>
</span>
%endif
${tagline()}
</div>
</div>