unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 7847225f483ee89f34f43dc1bddd33540e06ad76 1512 bytes (raw)
name: website/apps/videos/templates/video-list.scm 	 # note: path name is non-authoritative(*)

 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
 
;;; GNU Guix web site
;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
;;; Initially written by sirgazil who waves all
;;; copyright interest on this file.

(define-module (apps videos templates video-list)
  #:use-module (apps base templates components)
  #:use-module (apps base templates theme)
  #:use-module (apps base types)
  #:use-module (apps base utils)
  #:use-module (apps videos data)
  #:use-module (apps videos templates components)
  #:use-module (apps videos types)
  #:use-module (apps videos utils)
  #:export (video-list-t))


(define (video-list-t)
  "Return a list of videos in SHTML."
  (theme
   #:title '("Videos")
   #:description
   "Video about GNU Guix."
   #:keywords
   '("GNU" "Linux" "Unix" "Free software" "Libre software"
     "Operating system" "GNU Hurd" "GNU Guix package manager"
     "Help resources" "Videos")
   #:active-menu-item "Videos"
   #:css (list
          (guix-url "static/base/css/page.css")
          (guix-url "static/base/css/index.css"))
   #:crumbs (list (crumb "Videos" (guix-url "videos/")))
   #:content
   `(main
     (@ (class "page centered-block limit-width"))
     ,(map-in-order
       (lambda (playlist)
         `(,(map-in-order
             (lambda (video)
               `((h2 ,(link-yellow
                       #:label (video-title video)
                       #:url (guix-url (video->url video))))
                 ,(video-content video)))
             playlist)
           ,(horizontal-separator)))
       playlists))))

debug log:

solving 7847225 ...
found 7847225 in https://yhetil.org/guix-devel/20191022120504.7cyoc5x2exylpzrg@pelzflorian.localdomain/

applying [1/1] https://yhetil.org/guix-devel/20191022120504.7cyoc5x2exylpzrg@pelzflorian.localdomain/
diff --git a/website/apps/videos/templates/video-list.scm b/website/apps/videos/templates/video-list.scm
new file mode 100644
index 0000000..7847225

Checking patch website/apps/videos/templates/video-list.scm...
Applied patch website/apps/videos/templates/video-list.scm cleanly.

index at:
100644 7847225f483ee89f34f43dc1bddd33540e06ad76	website/apps/videos/templates/video-list.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).