This commit is contained in:
JMARyA 2025-01-13 18:32:21 +01:00
parent d3186a0794
commit a74ab5b064
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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)
}))
};