fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-23 10:49 am

[dw-free] sitescheme preview looks screwy

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

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

Tweak the entry preview to match the actual entry (subject line, time)

Patch by [personal profile] kareila.

Files modified:
  • htdocs/preview/entry.bml
--------------------------------------------------------------------------------
diff -r 07d943a5c456 -r 7c7dc63ef76e htdocs/preview/entry.bml
--- a/htdocs/preview/entry.bml	Mon Aug 23 18:29:45 2010 +0800
+++ b/htdocs/preview/entry.bml	Mon Aug 23 18:49:44 2010 +0800
@@ -112,6 +112,8 @@ _c?>
             $subject = LJ::text_trim($subject, 0, length($req{'subject'}) || 40);
         }
 
+        LJ::need_res( qw( stc/talkpage.css ) );
+
         $ret .= "<?page\n";
         $ret .= "body<=\n";
 
@@ -143,7 +145,7 @@ _c?>
             $req{'hour'} = int($req{'hour'});
             $req{'min'} = int($req{'min'});
 
-            $ret .= "<br /><font size='-1'>@ $etime $req{'hour'}:$req{'min'}:00</font>";
+            $ret .= "<br /><span class='time'>@ $etime $req{'hour'}:$req{'min'}:00</span>";
             $ret .= "</td></tr></table>";
         }
 
@@ -190,7 +192,7 @@ _c?>
         ###
         if ($subject) {
             BML::ebml(\$subject);
-            $ret .= "<font face='Arial,Helvetica' size='+1'><i><b>$subject</b></i></font><br />\n";
+            $ret .= "<div id='entrysubj'>$subject</div><br />\n";
         }
 
         $ret .= $event;
--------------------------------------------------------------------------------

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