diff options
author | Vitaly Takmazov | 2013-11-10 14:00:59 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2013-11-10 14:00:59 +0400 |
commit | c7ac059a7e59ff3da4f88c53bedae29655ae900c (patch) | |
tree | 3b6e5b809ad78a71d09b476468f93bc72c59acab /Juick/MessagesViewController.m | |
parent | f2f947a885df378b1d00b1c60d3576339d757782 (diff) |
timestamp and summary
Diffstat (limited to 'Juick/MessagesViewController.m')
-rw-r--r-- | Juick/MessagesViewController.m | 12 |
1 files changed, 12 insertions, 0 deletions
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:@", "], |