first steps to indienotes

This commit is contained in:
Jeena 2014-02-06 21:10:00 +01:00
parent 2267e54cd4
commit 69c5c270ad
3 changed files with 24 additions and 4 deletions

View file

@ -182,8 +182,10 @@ App.prototype.populateList = function() {
html_str += "<li"+ (article.unread ? " class='unread'" : "") +">";
html_str += "<a href='#full-"+i+"'>";
html_str += "<p class='title'>" + article.feed_title + "</p>";
html_str += "<h2>" + article.title + "</h2>";
if(article.excerpt) html_str += "<p class='excerpt'>" + article.excerpt + "</p>";
var content = article.content.stripHTML();
if(content.replace(/^\s+|\s+$/g,'').length == 0) content = article.title;
html_str += "<h2>" + content + "</h2>";
//if(article.excerpt) html_str += "<p class='excerpt'>" + article.excerpt + "</p>";
html_str += "</a></li>";
}

View file

@ -76,7 +76,7 @@ Pond.prototype.reload = function(callback) {
Pond.prototype.getUnreadFeeds = function(callback, skip) {
var options = {
status: "unread",
status: "all",
limit: 100
};
@ -134,6 +134,8 @@ Pond.prototype.normalizeArticle = function(article) {
var timestamp = new Date(article.published_at).getTime() / 1000;
console.log(article.read)
return {
id: article.id,
guid_hash: article.url + article.id,