diff --git a/src/routes/ui.rs b/src/routes/ui.rs index ec3778c..30512b2 100644 --- a/src/routes/ui.rs +++ b/src/routes/ui.rs @@ -103,7 +103,7 @@ pub async fn pkg_ui( ul class="space-y-1" { @for version in versions { li class="text-gray-800 dark:text-gray-100 hover:text-blue-500 dark:hover:text-blue-400 transition" { - (htmx_link(&format!("/{}/{}?ver={version}", repo.name, &pkg.name), if pkg.version.as_ref().map(|x| *x == version).unwrap_or_default() { "text-blue-500" } else { "" }, "", html! { + (htmx_link(&format!("/{}/{}?ver={version}", repo.name, &pkg.name), if pkg.version.as_ref().map(|x| *x == Package::version(&version).0).unwrap_or_default() { "text-blue-500" } else { "" }, "", html! { (version) })) };