diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-07-16 12:48:01 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-07-16 12:48:01 +0000 |
commit | 0f22533bdf554b88f1b5f9592a078382e272ad31 (patch) | |
tree | d88d65fb2f4ecf47d33890d8221f6ae9e18ea752 | |
parent | ee40f5605e50b1d421e3456f672a324360aff5a7 (diff) |
Added small NSFW indication for users who have disabled the warning
git-svn-id: svn://vndb.org/vndb@70 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
-rw-r--r-- | data/tpl/vnpage | 3 | ||||
-rw-r--r-- | lib/ChangeLog | 1 | ||||
-rw-r--r-- | static/files/style.css | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/data/tpl/vnpage b/data/tpl/vnpage index 123a3147..220b6c9f 100644 --- a/data/tpl/vnpage +++ b/data/tpl/vnpage @@ -56,6 +56,9 @@ <img src="[[: $p{st} ]]/cv/nsfw.png" id="nsfw" class="[[: $p{st} ]]/cv/[[= sprintf '%02d/%d', $d{vn}{image}%100, $d{vn}{image} ]].jpg" /> [[ } else { ]] <img src="[[: $p{st} ]]/cv/[[= sprintf '%02d/%d', $d{vn}{image}%100, $d{vn}{image} ]].jpg" alt="[[: $p{PageTitle} ]]" /> + [[ if($d{vn}{img_nsfw}) { ]] + <p class="nsfw">[ flagged as NSFW ]</p> + [[ } ]] [[ } ]] [[ } elsif($d{vn}{image} < 0) { ]]- [processing image, please return in a few minutes] diff --git a/lib/ChangeLog b/lib/ChangeLog index b6856535..dc4d5b9f 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -14,6 +14,7 @@ TODO: - Searching for 'Chinese' doesn't select 'NES' - Place/time category order on VN pages is now consistent - Admins can delete users from the DB + - Added small NSFW indication for users who have disabled the warning 1.19 - 2008-07-08 (r62) - Integrated discussion board diff --git a/static/files/style.css b/static/files/style.css index 77bd7eba..6047f517 100644 --- a/static/files/style.css +++ b/static/files/style.css @@ -372,6 +372,7 @@ a.help { /* VN page header, general dl and list markup */ +p.nsfw { color: #999; font-size: 10px; font-style: italic; } dt { float: left; font-style: italic; |