added a subtitle to the FeedItem List

This commit is contained in:
Hauke Schade 2012-12-13 17:40:59 +01:00
parent d626a242ba
commit 16549cfd59

View file

@ -129,9 +129,12 @@ Page {
loading = false;
if (feeditems && feeditems.length) {
for(var feeditem = 0; feeditem < feeditems.length; feeditem++) {
var x = ttrss.html_entity_decode(feeditems[feeditem].content, 'ENT_QUOTES')
if (x.length > 102)
x = x.substring(0,100) + "..."
itemListModel.append({
title: ttrss.html_entity_decode(feeditems[feeditem].title, 'ENT_QUOTES'),
subtitle: "subtitle",
subtitle: x,
id: feeditems[feeditem].id,
unread: !!feeditems[feeditem].unread,
marked: !!feeditems[feeditem].marked,