diff --git a/src/presentation/web/views/brews.rs b/src/presentation/web/views/brews.rs index 620ae71..696a299 100644 --- a/src/presentation/web/views/brews.rs +++ b/src/presentation/web/views/brews.rs @@ -44,6 +44,7 @@ pub struct BrewView { pub ratio: String, pub quick_notes: Vec, pub quick_notes_label: String, + pub quick_notes_raw: String, pub created_date: String, pub created_time: String, pub relative_date_label: String, @@ -77,6 +78,11 @@ impl BrewView { .map(|n| n.label.as_str()) .collect::>() .join(", "); + let quick_notes_raw = quick_notes + .iter() + .map(|n| n.form_value.as_str()) + .collect::>() + .join(","); Self { id: brew.brew.id.to_string(), @@ -101,6 +107,7 @@ impl BrewView { ratio, quick_notes, quick_notes_label, + quick_notes_raw, created_date: brew.brew.created_at.format("%Y-%m-%d").to_string(), created_time: brew.brew.created_at.format("%H:%M").to_string(), relative_date_label: relative_date(brew.brew.created_at), diff --git a/templates/pages/home.html b/templates/pages/home.html index f786d20..04c6d71 100644 --- a/templates/pages/home.html +++ b/templates/pages/home.html @@ -119,6 +119,7 @@ {% endif %} +