# HG changeset patch # User Atul Varma # Date 1236040541 28800 # Node ID ed71cc5972e20f7d69cd4b210e006c5b51ffed21 # Parent 6389be695a1ad60652526c493c7cbdc10b49d6c0 Blogs don't display byline if no author is present. diff -r 6389be695a1a -r ed71cc5972e2 about-mozilla.js --- 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 = $('
' + - ' by ' + + ' ' + '
'); $('.title', item).html(this.title); $('.title', item).wrap(''); - $('.author', item).html(this.author); + if (this.author) + $('.author', item).html('by ' + this.author); content.append(item); }); }