fix
This commit is contained in:
parent
d3186a0794
commit
a74ab5b064
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ pub async fn pkg_ui(
|
||||||
ul class="space-y-1" {
|
ul class="space-y-1" {
|
||||||
@for version in versions {
|
@for version in versions {
|
||||||
li class="text-gray-800 dark:text-gray-100 hover:text-blue-500 dark:hover:text-blue-400 transition" {
|
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)
|
(version)
|
||||||
}))
|
}))
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue