mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Add JavaScript licenses page
This commit is contained in:
parent
998bd3d7cb
commit
6f8e03e506
7 changed files with 46 additions and 1 deletions
|
|
@ -43,4 +43,4 @@ html
|
|||
h3.footer__colhead About
|
||||
ul.footer__list
|
||||
li: a(href="/privacy") Privacy policy
|
||||
// li: a(href="/js-licenses") JavaScript licenses
|
||||
li: a(href="/js-licenses" data-jslicense=1) JavaScript licenses
|
||||
|
|
|
|||
22
pug/js-licenses.pug
Normal file
22
pug/js-licenses.pug
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
extends includes/layout.pug
|
||||
|
||||
block head
|
||||
title JavaScript license information
|
||||
|
||||
block content
|
||||
main.js-licenses-page
|
||||
h1 JavaScript license information
|
||||
table#jslicense-labels1
|
||||
thead
|
||||
tr
|
||||
th(scope="col") File
|
||||
th(scope="col") License
|
||||
th(scope="col") Source
|
||||
tbody
|
||||
each path of static.keys()
|
||||
if path.match(/^html\/static\/js\/.*\.js$/)
|
||||
- const file = path.replace(/^html/, "")
|
||||
tr
|
||||
td: a(href=file)= file
|
||||
td: a(href="http://www.gnu.org/licenses/agpl-3.0.html") GNU-AGPL-3.0-or-later
|
||||
td: a(href=file)= file
|
||||
Loading…
Add table
Add a link
Reference in a new issue