mirror of
https://github.com/nikolassv/bartib
synced 2024-11-10 14:14:12 +00:00
fix: project display onm status
This commit is contained in:
parent
f13e463bc6
commit
7f082cdf3e
1 changed files with 3 additions and 5 deletions
|
@ -71,15 +71,13 @@ fn print_activity(
|
|||
activity: Option<&activity::Activity>,
|
||||
project: Option<&str>,
|
||||
) -> fmt::Result {
|
||||
let activity_style = Color::Green.bold();
|
||||
let project_style = Style::new().italic();
|
||||
match activity {
|
||||
Some(activity) => {
|
||||
write(f, "\n NOW: ", Style::new().italic().dimmed())?;
|
||||
write(f, activity.description.as_str(), activity_style)?;
|
||||
if let Some(pr_str) = project {
|
||||
write(f, activity.description.as_str(), Color::Green.bold())?;
|
||||
if project.is_none() {
|
||||
write(f, " on ", Style::new().italic().dimmed())?;
|
||||
write(f, pr_str, project_style)?;
|
||||
write(f, &activity.project, Style::new().italic())?;
|
||||
};
|
||||
write(f, " ...... ", Style::new().dimmed())?;
|
||||
write(
|
||||
|
|
Loading…
Reference in a new issue