acl_read "${page_abs}" || continue
read ostamp odate <<-EOF
- $(git -C "$_DATA" log --pretty="format:%at %ai" -- "pages${page_abs}#page.md")
+ $([ "$REV_PAGES" = true ] \
+ && git -C "$_DATA" log --pretty="format:%at %ai" -- "pages${page_abs}#page.md" \
+ || stat -c "%Y %y" -- "$_DATA/pages${page_abs}#page.md"
+ )
EOF
- row="<td><a href=\"$(HTML "$page")\">$(HTML "$page")</a><span class=\"date\">${odate%% +*}</span></td>"
+ row="<td><a href=\"$(HTML "$page")\">$(HTML "$page")</a><span class=\"date\">${odate%%[+.]*}</span></td>"
rowstate=''
for l in $LANGUAGES; do
if [ -f "${_DATA}/pages/${page}:${l}/#page.md" ]; then
read lstamp ldate <<-EOF
- $(git -C "$_DATA" log --pretty="format:%at %ai" -- "pages$(page_abs "${page_abs}:${l}")/#page.md")
+ $([ "$REV_PAGES" = true ] \
+ && git -C "$_DATA" log --pretty="format:%at %ai" -- "pages$(page_abs "${page_abs}:${l}")/#page.md" \
+ || stat -c "%Y %y" -- "$_DATA/pages$(page_abs "${page_abs}:${l}")/#page.md"
+ )
EOF
if [ $lstamp -lt $ostamp ] 2>&-; then
- row="${row}<td class=\"outdated\"><a href=\"$(HTML "${page}:${l}")\">outdated</a><span class=\"date\">${ldate%% +*}</span></td>"
+ row="${row}<td class=\"outdated\"><a href=\"$(HTML "${page}:${l}")\">outdated</a><span class=\"date\">${ldate%%[+.]*}</span></td>"
[ "$rowstate" = "${rowstate%*outdated*}" ] && rowstate="${rowstate}${rowstate:+ }outdated"
else
- row="${row}<td class=\"current\" ><a href=\"$(HTML "${page}:${l}")\">current</a ><span class=\"date\">${ldate%% +*}</span></td>"
+ row="${row}<td class=\"current\" ><a href=\"$(HTML "${page}:${l}")\">current</a ><span class=\"date\">${ldate%%[+.]*}</span></td>"
[ "$rowstate" = "${rowstate%*current*}" ] && rowstate="${rowstate}${rowstate:+ }current"
fi
else