3 . "$_EXEC/cgilite/cgilite.sh"
10 while [ $# -gt 0 ]; do case $1 in
11 --system) glob_system_pages=true; shift 1;;
12 :*) LANGUAGES="${LANGUAGES}${LANGUAGES:+ }${1#:}"; shift 1;;
13 --depth) depth="$2"; shift 2;;
14 *) glob="$1"; shift 1;;
17 printf '<table><thead>\n<th>Page</th>'
18 for l in $LANGUAGES; do printf '<th>%s</th>' "$l"; done
19 printf '\n</thead><tbody>\n'
21 page_glob "$glob" "$depth" |while read page; do
22 acl_read "$page" || continue
25 read ostamp odate <<-EOF
26 $(git -C "$_DATA" log --pretty="format:%at %ar" -- "pages/${page}#page.md")
28 printf '<td><a href="%s">%s</a><span>%s</span></td>' "$(HTML "$page")" "$(HTML "$page")" "${odate}"
30 for l in $LANGUAGES; do
31 if [ -f "${_DATA}/pages/${page}:${l}/#page.md" ]; then
32 read lstamp ldate <<-EOF
33 $(git -C "$_DATA" log --pretty="format:%at %ar" -- "pages/${page}:${l}/#page.md")
35 if [ $lstamp -lt $ostamp ]; then
36 printf '<td><a href="%s">outdated</a><span>%s</span></td>' "$(HTML "${page}:${l}")" "$ldate"
38 printf '<td><a href="%s">current</a><span>%s</span></td>' "$(HTML "${page}:${l}")" "$ldate"
41 printf '<td><a href="%s">missing</a></td>' "$(HTML "${page}:${l}")"
48 printf '</tbody></table>'