From c7ac059a7e59ff3da4f88c53bedae29655ae900c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 10 Nov 2013 14:00:59 +0400 Subject: timestamp and summary --- Juick/MessagesViewController.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Juick/MessagesViewController.m') diff --git a/Juick/MessagesViewController.m b/Juick/MessagesViewController.m index 68c70cb..2e27d43 100644 --- a/Juick/MessagesViewController.m +++ b/Juick/MessagesViewController.m @@ -163,6 +163,12 @@ static NSString *CellIdentifier = @"MessageCell"; }]; cell.titleLabel.text = msg.user; cell.titleLabel.textColor = [ColorsAndButtons linkColor]; + cell.timestampLabel.text = msg.timestamp; + if (msg.repliesCount > 0) { + cell.summaryLabel.text = [NSString stringWithFormat:@"%@ replies by %@", msg.repliesCount, msg.repliesBy]; + } else { + cell.summaryLabel.text = nil; + } cell.bodyLabel.text = [msg.text stringByDecodingHTMLEntities]; if ([msg.tags count] > 0) { cell.bodyLabel.text = [[NSString alloc] initWithFormat:@"%@\n%@", [msg.tags componentsJoinedByString:@", "], @@ -187,6 +193,12 @@ static NSString *CellIdentifier = @"MessageCell"; }]; cell.titleLabel.text = msg.user; + cell.timestampLabel.text = msg.timestamp; + if (msg.repliesCount > 0) { + cell.summaryLabel.text = [NSString stringWithFormat:@"%@ replies by %@", msg.repliesCount, msg.repliesBy]; + } else { + cell.summaryLabel.text = nil; + } cell.bodyLabel.text = [msg.text stringByDecodingHTMLEntities]; if ([msg.tags count] > 0) { cell.bodyLabel.text = [[NSString alloc] initWithFormat:@"%@\n%@", [msg.tags componentsJoinedByString:@", "], -- cgit v1.2.3