diff --git a/src/web/icons/mod.rs b/src/web/icons/mod.rs index a708e20..e84a59e 100644 --- a/src/web/icons/mod.rs +++ b/src/web/icons/mod.rs @@ -17,6 +17,7 @@ pub const MAP_PIN: &str = include_str!("map-pin.svg"); pub const PEN: &str = include_str!("pen.svg"); pub const PLUS: &str = include_str!("plus.svg"); pub const QUOTE: &str = include_str!("quote.svg"); +pub const REFRESH_CW: &str = include_str!("refresh-cw.svg"); pub const SCROLL_TEXT: &str = include_str!("scroll-text.svg"); pub const SERVER: &str = include_str!("server.svg"); pub const SHIELD_USER: &str = include_str!("shield-user.svg"); diff --git a/src/web/icons/refresh-cw.svg b/src/web/icons/refresh-cw.svg new file mode 100644 index 0000000..694f0bf --- /dev/null +++ b/src/web/icons/refresh-cw.svg @@ -0,0 +1 @@ + diff --git a/src/web/pages/dashboard.rs b/src/web/pages/dashboard.rs index 79cf8e5..90ac69f 100644 --- a/src/web/pages/dashboard.rs +++ b/src/web/pages/dashboard.rs @@ -68,7 +68,10 @@ pub async fn page( } @if let Some(q) = random_quote { div class="flex flex-col" { - p {"Random Quote"} + div class="flex gap-1" { + p {"Random Quote"} + a href="/dashboard" class="text-neutral-500 scale-[.65] hover:text-neutral-200 focus:text-neutral-200" {(PreEscaped(icons::REFRESH_CW))} + } p class="text-neutral-500 font-light mb-4" { "This quote was added " (format_time_ago(q.get_creation_timestamp())) " ago."