[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: Embed the locale option in the URI of the package page
From: |
Christopher Baines |
Subject: |
02/07: Embed the locale option in the URI of the package page |
Date: |
Fri, 26 Jun 2020 12:55:11 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository data-service.
commit 7d85372accd34999704f1353573b9dec88e26f7c
Author: Danjela Lura <danielaluraa@gmail.com>
AuthorDate: Mon Jun 22 21:35:02 2020 +0200
Embed the locale option in the URI of the package page
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
guix-data-service/web/revision/html.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/guix-data-service/web/revision/html.scm
b/guix-data-service/web/revision/html.scm
index c37683f..bc1aff7 100644
--- a/guix-data-service/web/revision/html.scm
+++ b/guix-data-service/web/revision/html.scm
@@ -688,7 +688,8 @@
(td (@ (class "text-right"))
(a (@ (href ,(string-append
(string-drop-right path-base 1)
- "/" name "/" version)))
+ "/" name "/" version
+ "?locale=" (assoc-ref query-parameters
'locale))))
"More information")))))
packages))))))
,@(if show-next-page?
@@ -1939,7 +1940,8 @@ figure {
(string-join
(drop-right (string-split path-base
#\/) 1)
"/")
- "/package/" package-name "/"
package-version)))
+ "/package/" package-name "/"
package-version
+ "?locale=" (assq-ref query-parameters
'locale))))
,package-name " @ " ,package-version))
,@(if (member "linter" fields)
`((td (span (@ (style "font-family: monospace;
display: block;"))
- branch master updated (0b48254 -> f60c2ea), Christopher Baines, 2020/06/26
- 01/07: Include locale in the JSON response for the packages page, Christopher Baines, 2020/06/26
- 02/07: Embed the locale option in the URI of the package page,
Christopher Baines <=
- 04/07: Include locale in search-packages-in-revision, Christopher Baines, 2020/06/26
- 05/07: Add locale values in the JSON response for the lint warnings page, Christopher Baines, 2020/06/26
- 06/07: Add indications for no translations available in the lint warnings page, Christopher Baines, 2020/06/26
- 03/07: Add indications for no translations available in the packages page, Christopher Baines, 2020/06/26
- 07/07: Add the packages-translation-availability page, Christopher Baines, 2020/06/26