forked from cadence/breezewiki
Style tweaks to file page, add copyright notice
This commit is contained in:
parent
07074dccfc
commit
58d6a652d8
1 changed files with 15 additions and 14 deletions
|
@ -79,11 +79,15 @@
|
|||
(p ,(if (non-empty-string? video-embed-code)
|
||||
`""
|
||||
`(span (a (@ (href ,maybe-proxied-raw-image-url)) "View original file") ". "))
|
||||
"Added by "
|
||||
"Uploaded by "
|
||||
(a (@ (href ,(format "/~a/wiki/User:~a" wikiname username))) ,username)
|
||||
"."
|
||||
".")
|
||||
,(if (string? image-description)
|
||||
(update-tree-wiki (html->xexp (preprocess-html-wiki image-description)) wikiname)
|
||||
; file license info might be displayed in the description, example: /lgbtqia/wiki/File:Rainbow_Flag1.svg
|
||||
`(p "This file is likely protected by copyright. Consider the file's license and fair use law before reusing it."))
|
||||
,(if is-posted-in
|
||||
`(span " Posted in "
|
||||
`(p "This file is used in "
|
||||
,@(map (λ (article)
|
||||
(define page-path (jp "/title" article))
|
||||
(define title (jp "/titleText" article page-path))
|
||||
|
@ -92,10 +96,7 @@
|
|||
,title)))
|
||||
smaller-article-list)
|
||||
,(if (eq? article-list-is-smaller 1) "…" "."))
|
||||
`""))
|
||||
,(if (string? image-description)
|
||||
(update-tree-wiki (html->xexp (preprocess-html-wiki image-description)) wikiname)
|
||||
""))))
|
||||
`""))))
|
||||
|
||||
(define (page-file req)
|
||||
(define wikiname (path/param-path (first (url-path (request-uri req)))))
|
||||
|
|
Loading…
Reference in a new issue