diff --git a/offline.js b/offline.js index 58c2377c2..a46702144 100644 --- a/offline.js +++ b/offline.js @@ -4,12 +4,45 @@ function view_offline(id, feed_id) { enableHotkeys(); showArticleInHeadlines(id); - if (db) { - db.execute("UPDATE articles SET unread = 0 WHERE id = ?", [id]); - } + db.execute("UPDATE articles SET unread = 0 WHERE id = ?", [id]); - render_article("FIXME"); - update_local_feedlist_counters(); + var rs = db.execute("SELECT * FROM articles WHERE id = ?", [id]); + + if (rs.isValidRow()) { + + var tmp = "
"; + + tmp += "
"; + + tmp += "
"+rs.fieldByName("updated")+"
"; + + if (rs.fieldByName("link") != "") { + tmp += "
" + + rs.fieldByName("title") + "
"; + } else { + tmp += "
" + rs.fieldByName("title") + "
"; + } + + tmp += "
"+ + "Tags"; + tmp += rs.fieldByName("tags"); + tmp += "
"; + + tmp += "
fixme-comments
"; + + tmp += "
"; + + tmp += "
" + tmp += rs.fieldByName("content"); + tmp += "
"; + + tmp += "
"; + + render_article(tmp); + update_local_feedlist_counters(); + } return false;