Author: miguel
Date: 2007-01-10 16:52:23 -0500 (Wed, 10 Jan 2007)
New Revision: 70817

Modified:
   trunk/lb/comments
   trunk/lb/entry
   trunk/lb/lb.cs
   trunk/lb/log-style.css
   trunk/lb/makefile
Log:
Some updates: always comment after jan 2007, small css tuneups

Modified: trunk/lb/comments
===================================================================
--- trunk/lb/comments   2007-01-10 21:42:05 UTC (rev 70816)
+++ trunk/lb/comments   2007-01-10 21:52:23 UTC (rev 70817)
@@ -1 +1 @@
-| <a href="http://groups-beta.google.com/group/tiraniaorg-blog-comments/[EMAIL 
PROTECTED]@ on @ENTRY_DATECAPTION@">Post Comment</a>
+<p align="right">[<a 
href="http://groups-beta.google.com/group/tiraniaorg-blog-comments/[EMAIL 
PROTECTED]@ on @ENTRY_DATECAPTION@">Post Comment</a>] | [<a 
href="http://groups-beta.google.com/group/tiraniaorg-blog-comments/search?group=tiraniaorg-blog-comments&[EMAIL
 PROTECTED]@ on @ENTRY_DATECAPTION@&qt_g=Search+this+group">Comments</a>]</p>

Modified: trunk/lb/entry
===================================================================
--- trunk/lb/entry      2007-01-10 21:42:05 UTC (rev 70816)
+++ trunk/lb/entry      2007-01-10 21:52:23 UTC (rev 70817)
@@ -5,10 +5,10 @@
 <div class='blogentry'>
 <h1><a href="@BASEDIR@@ENTRY_PERMALINK@" 
class="entryTitle">@ENTRY_CAPTION@</a></h1>
 @ENTRY_BODY@
[EMAIL PROTECTED]@
 </div>
 
 <div class='footer'>Posted by @COPYRIGHT@ on <a 
href="@ENTRY_URL_PERMALINK@">@ENTRY_DATECAPTION@</a> 
[EMAIL PROTECTED]@
 <!--|
         <a href="http://www.digg.com/submit?phase=2&[EMAIL PROTECTED]@">Digg 
It</a> |
         <a href="http://reddit.com/[EMAIL PROTECTED]@">Reddit</a>-->

Modified: trunk/lb/lb.cs
===================================================================
--- trunk/lb/lb.cs      2007-01-10 21:42:05 UTC (rev 70816)
+++ trunk/lb/lb.cs      2007-01-10 21:52:23 UTC (rev 70817)
@@ -35,7 +35,8 @@
        public string Caption = "";
        public string DateCaption;
        public string Category = "";
-       public bool Comments;
+       public bool Comments = DateTime.Now > new DateTime (2007, 1, 1);
+       public string RenderedComment;
        
        Blog blog;
        public string extra = "";
@@ -411,7 +412,8 @@
                        StringWriter rendered_comment = new StringWriter (new 
StringBuilder (comments.Length));
                        Translate (comments, rendered_comment, substitutions);
                        substitutions.Add ("@COMMENTS@", 
rendered_comment.ToString ());
-               } else
+                       d.RenderedComment = rendered_comment.ToString ();
+               } else 
                        substitutions.Add ("@COMMENTS@", "");
 
                StringWriter body = new StringWriter (new StringBuilder 
(d.Body.Length));
@@ -678,7 +680,7 @@
 
                        RssItem item = new RssItem ();
                        item.Author = config.Author;
-                       item.Description = d.Body;
+                       item.Description = d.Body + (d.RenderedComment ?? 
"nothing");
                        item.Guid = new RssGuid ();
                        item.Guid.Name = config.BlogWebDirectory + d.PermaLink;
                        item.Link = new Uri (item.Guid.Name);

Modified: trunk/lb/log-style.css
===================================================================
--- trunk/lb/log-style.css      2007-01-10 21:42:05 UTC (rev 70816)
+++ trunk/lb/log-style.css      2007-01-10 21:52:23 UTC (rev 70817)
@@ -26,7 +26,7 @@
        padding-top: 2em;
        margin-left: 1em;
        margin-right: 2em;
-       width: 45em;
+
 }
 
 .blogentry h1, .blogentry h2 {
@@ -45,7 +45,7 @@
        font-size: smaller;
        margin-left: -1em;
        border-bottom: 2px solid #dddddd;
-       background: #ffffff;
+       background: transparent;
 }
 
 body, table {
@@ -81,12 +81,12 @@
 #main { 
        margin-left: 2em;
        position: absolute;
-       width: 62%;
+       width: 66%;
 }
 
 #sidebar {
-       width: 28%;
-       left: 66%;
+       width: 26%;
+       left: 70%;
        padding:1em 0pt 1em 2em;
        position: absolute;
        border-left:1px dotted #AAAAAA;

Modified: trunk/lb/makefile
===================================================================
--- trunk/lb/makefile   2007-01-10 21:42:05 UTC (rev 70816)
+++ trunk/lb/makefile   2007-01-10 21:52:23 UTC (rev 70817)
@@ -5,7 +5,7 @@
                -r:System.Web   
 
 lb.exe: lb.cs config.cs
-       mcs $(ASSEMBLIES) -debug lb.cs config.cs -out:lb.exe 
+       gmcs $(ASSEMBLIES) -debug lb.cs config.cs -out:lb.exe 
 
 b: lb.exe
        mono --debug lb.exe

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to