Feature 2: show created_at and updated_at in detail panel
This commit is contained in:
@@ -158,6 +158,20 @@ pub fn render_detail(
|
||||
)));
|
||||
}
|
||||
|
||||
if let Some(created) = task.created_at {
|
||||
lines.push(Line::from(Span::styled(
|
||||
format!("Created: {}", created.format("%d/%m/%Y %H:%M")),
|
||||
Style::default().fg(Color::DarkGray),
|
||||
)));
|
||||
}
|
||||
|
||||
if let Some(updated) = task.updated_at {
|
||||
lines.push(Line::from(Span::styled(
|
||||
format!("Updated: {}", updated.format("%d/%m/%Y %H:%M")),
|
||||
Style::default().fg(Color::DarkGray),
|
||||
)));
|
||||
}
|
||||
|
||||
if let Some(notes) = &task.notes {
|
||||
if !notes.is_empty() {
|
||||
lines.push(Line::from(""));
|
||||
|
||||
Reference in New Issue
Block a user