Remove JSON duplication in articles helper

This commit is contained in:
Wesley Moore 2010-03-12 07:11:58 +11:00
parent 7f3a8839a9
commit 696cdf3968
2 changed files with 2 additions and 3 deletions

View file

@ -17,9 +17,8 @@ module WezM
:title => article[:title], :title => article[:title],
:path => article.identifier, :path => article.identifier,
:date => Time.parse(article[:created_at]).rfc2822, :date => Time.parse(article[:created_at]).rfc2822,
:summary => article[:summary],
:text => article[:title], :text => article[:title],
:extra => article[:summary] :extra => article[:excerpt] || " "
} }
end end

View file

@ -98,7 +98,7 @@ var WezM = {
year: date.getYear() + 1900, year: date.getYear() + 1900,
path: article.path, path: article.path,
title: article.title, title: article.title,
summary: article.summary summary: article.extra
}; };
var li = this._renderArticle(article_view); var li = this._renderArticle(article_view);
container.append(li); container.append(li);