changeset 18:ed71cc5972e2

Blogs don't display byline if no author is present.
author Atul Varma <varmaa@toolness.com>
date Mon, 02 Mar 2009 16:35:41 -0800
parents 6389be695a1a
children 31e8b6e1db42
files about-mozilla.js
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/about-mozilla.js	Mon Mar 02 16:27:48 2009 -0800
+++ b/about-mozilla.js	Mon Mar 02 16:35:41 2009 -0800
@@ -3,11 +3,12 @@
     feed.entries,
     function(i) {
       var item = $('<div class="blog-item">' +
-                   '<span class="title"></span> by ' +
+                   '<span class="title"></span> ' +
                    '<span class="author"></span></div>');
       $('.title', item).html(this.title);
       $('.title', item).wrap('<a href="' + this.link + '"></a>');
-      $('.author', item).html(this.author);
+      if (this.author)
+        $('.author', item).html('by ' + this.author);
       content.append(item);
     });
 }