fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-06-19 10:31 am

[dw-free] Add a .no-title class if an entry/comment doesn't have a title

[commit: http://hg.dwscoalition.org/dw-free/rev/fe68829a72ea]

http://bugs.dwscoalition.org/show_bug.cgi?id=3172

Style things which are screened/frozen/have ECHI the same as if they had
comment subjects.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/core2.s2
--------------------------------------------------------------------------------
diff -r d019d0f88a75 -r fe68829a72ea bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2	Tue Jun 19 04:11:26 2012 +0000
+++ b/bin/upgrading/s2layers/core2.s2	Tue Jun 19 16:39:08 2012 +0800
@@ -4835,7 +4835,8 @@
     if ($this.deleted or $this.fromsuspended or $this.screened_noshow) { $poster =  "poster-hidden"; }
     var string full = $this.full ? "full" : "partial";
     var string userpic = $this.userpic ? "has-userpic" : "no-userpic";
-    var string commentsubject = (not $*all_commentsubjects and $.subject == "" and $.full) ? "no-subject" : "has-subject";
+    var bool commenthassubject = ($.screened or $.frozen or $.echi != "" or $.subject != "") ? true : false;
+    var string commentsubject = (not $*all_commentsubjects and not $commenthassubject and $.full) ? "no-subject" : "has-subject";
     var string entryauthor = "";
     if (not isnull $ep and defined $this.poster and $this.poster.username == $ep.entry.poster.username) {
         $entryauthor = "entry-author";
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org