Milestone events have date (#1237)

* milestone events have date

* remove extra space
This commit is contained in:
Ryan Nystrom
2017-12-12 09:52:19 -05:00
committed by GitHub
parent b6ed4faf27
commit dbcf7fb290

View File

@@ -65,6 +65,14 @@ final class IssueMilestoneEventModel: ListDiffable {
.font: Styles.Fonts.secondaryBold
]
))
attributedText.append(NSAttributedString(
string: " \(date.agoString)",
attributes: [
.font: Styles.Fonts.secondary,
.foregroundColor: Styles.Colors.Gray.medium.color,
MarkdownAttribute.details: DateDetailsFormatter().string(from: date)
]
))
self.attributedText = NSAttributedStringSizing(
containerWidth: width,
attributedText: attributedText,