enhance: display more accurate time tracking prefixes
This commit is contained in:
parent
eea8511a6e
commit
5cd82e8581
|
@ -386,7 +386,7 @@ async fn main() -> Result<()> {
|
|||
match arg {
|
||||
None => {
|
||||
if let Some(task) = tasks.get_current_task() {
|
||||
println!("Change History:");
|
||||
println!("Change History for {}:", task.get_id());
|
||||
for e in once(&task.event).chain(task.props.iter().rev()) {
|
||||
println!("{} {} [{}]",
|
||||
format_timestamp_full(&e.created_at),
|
||||
|
|
|
@ -279,12 +279,12 @@ impl TasksRelay {
|
|||
}
|
||||
// TODO show history for active tags
|
||||
(
|
||||
"Your Time-Tracking History:".to_string(),
|
||||
format!("Time-Tracking History for {}:", self.get_displayname(&key)),
|
||||
Box::from(full.into_iter()),
|
||||
)
|
||||
} else {
|
||||
(
|
||||
"You have nothing time-tracked yet".to_string(),
|
||||
"Nothing time-tracked yet".to_string(),
|
||||
Box::from(empty()),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue