1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
| | ;;; GNU Guix web site
;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of the GNU Guix web site.
;;;
;;; The GNU Guix web site is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU Affero General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; The GNU Guix web site is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU Affero General Public License for more details.
;;;
;;; You should have received a copy of the GNU Affero General Public License
;;; along with the GNU Guix web site. If not, see <http://www.gnu.org/licenses/>.
(define-module (apps development templates branches)
#:use-module (apps base templates theme)
#:use-module (apps base types)
#:use-module (apps base utils)
#:use-module (apps i18n)
#:use-module (apps development templates components)
#:export (branch-list-t))
(define (branch-list-t branches)
"Return the branch page in SHTML."
(theme
#:title (C_ "webpage title" '("Branching status"))
#:description
(G_ "Status of active development branches.")
#:keywords
;; TRANSLATORS: |-separated list of webpage keywords.
(string-split (G_ "Development|Branching") #\|)
#:active-menu-item (C_ "website menu" "Branching")
#:css (list
(guix-url "static/base/css/page.css")
(guix-url "static/development/css/branches.css"))
#:crumbs (list (crumb (C_ "website menu" "Publications") "./"))
#:content
`(main
(section
(@ (class "page"))
,(G_ `(h2 "Branching"))
,(G_
`(p
(@ (class "centered-block limit-width"))
"This page lists currently-active Git development branches."))
(div
(@ (class "publication-list centered-block limit-width"))
,@(map branch->shtml branches))))))
|