From f6c93593a4cd3d8fc423ac8bc1f53b495caeabc6 Mon Sep 17 00:00:00 2001 From: Montana Low Date: Tue, 9 Jan 2024 20:55:08 -0800 Subject: [PATCH] expose for all contexts --- pgml-dashboard/src/components/layouts/head/template.html | 9 ++++----- pgml-dashboard/src/templates/mod.rs | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pgml-dashboard/src/components/layouts/head/template.html b/pgml-dashboard/src/components/layouts/head/template.html index 0f9b09dae..64a3aa5c7 100644 --- a/pgml-dashboard/src/components/layouts/head/template.html +++ b/pgml-dashboard/src/components/layouts/head/template.html @@ -36,10 +36,13 @@ + <% if canonical.is_some() { %> + + <% } %> + <% if context.is_some() { %> <%- context.unwrap() %> <% } else { %> - - <% if canonical.is_some() { %> - - <% } %> - "> diff --git a/pgml-dashboard/src/templates/mod.rs b/pgml-dashboard/src/templates/mod.rs index 07b5e7488..061cf353c 100644 --- a/pgml-dashboard/src/templates/mod.rs +++ b/pgml-dashboard/src/templates/mod.rs @@ -67,7 +67,7 @@ impl Layout { } pub fn canonical(&mut self, canonical: &str) -> &mut Self { - self.head.canonical = Some(canonical.to_string()); + self.head.canonical = Some(canonical.to_owned()); self }