Fix branch package version page if no data is found
This commit is contained in:
parent
9a1c1b30cb
commit
83f2981c64
1 changed files with 12 additions and 6 deletions
|
|
@ -188,12 +188,18 @@
|
|||
(datetime . ,last-datetime))))))
|
||||
package-versions))))))
|
||||
(else
|
||||
(if (null? package-versions)
|
||||
(render-html
|
||||
#:sxml (general-not-found
|
||||
"Package or branch not found"
|
||||
"")
|
||||
#:code 404)
|
||||
(render-html
|
||||
#:sxml (view-branch-package
|
||||
repository-id
|
||||
branch-name
|
||||
package-name
|
||||
package-versions))))))
|
||||
package-versions)))))))
|
||||
(('GET "repository" repository-id "branch" branch-name "package" package-name "derivation-history")
|
||||
(render-branch-package-derivation-history request
|
||||
mime-types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue