try putting the html in th diff directly

This commit is contained in:
mbecker20
2024-05-10 03:19:18 -07:00
parent c90368e2af
commit 840c1a87d0
3 changed files with 1 additions and 9 deletions

1
Cargo.lock generated
View File

@@ -2271,7 +2271,6 @@ dependencies = [
"axum 0.7.5",
"axum-extra",
"bcrypt",
"colored",
"dotenv",
"envy",
"futures",

View File

@@ -40,7 +40,6 @@ typeshare.workspace = true
tracing.workspace = true
reqwest.workspace = true
futures.workspace = true
colored.workspace = true
anyhow.workspace = true
dotenv.workspace = true
bcrypt.workspace = true

View File

@@ -1,7 +1,6 @@
use std::str::FromStr;
use anyhow::{anyhow, Context};
use colored::Colorize;
use futures::future::join_all;
use monitor_client::{
api::write::CreateTag,
@@ -378,12 +377,7 @@ pub async fn update<T: MonitorResource>(
for FieldDiff { field, from, to } in diff.iter_field_diffs() {
diff_log.push_str(&format!(
"\n\n{}: '{field}'\n{}: {}\n{}: {}",
"field".dimmed(),
"from".dimmed(),
from.red(),
"to".dimmed(),
to.green()
"\n\n<span class=\"text-muted-foreground\">field</span>: '{field}'\n<span class=\"text-muted-foreground\">from</span>: <span class=\"text-red-500\">{from}</span>\n<span class=\"text-muted-foreground\">to</span>: <span class=\"text-green-500\">{to}</span>",
));
}