all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob fc9f9161ee3b46a57f685e39493db2377ed7282b 884 bytes (raw)
name: website/apps/videos/templates/components.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
 
;;; 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 components)
  #:use-module (apps base templates components)
  #:use-module (apps videos types)
  #:use-module (srfi srfi-19)
  #:export (video-content))


(define (video-content video)
  `((div
     (video
      (@ (class "video-preview")
         (src ,(video-url video))
         (poster ,(video-poster video))
         (controls "controls"))
      (p
       "Download video: "
       ,(link-yellow
         #:label (video-title video)
         #:url (video-url video))
       " (1 minute, 30 seconds).")))
    ,(video-description video)
    ,(let ((date (video-last-updated video)))
       (if date
           `(p "Last updated: " ,(date->string date))
           ""))))

debug log:

solving fc9f916 ...
found fc9f916 in https://yhetil.org/guix/20191022120504.7cyoc5x2exylpzrg@pelzflorian.localdomain/

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

Checking patch website/apps/videos/templates/components.scm...
Applied patch website/apps/videos/templates/components.scm cleanly.

index at:
100644 fc9f9161ee3b46a57f685e39493db2377ed7282b	website/apps/videos/templates/components.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.