forked from cosmic/cosmic
small cleanup
This commit is contained in:
parent
863ee32951
commit
69efc60083
4
bin/web
4
bin/web
|
@ -8,14 +8,14 @@ entry_index () {
|
|||
logdir=$(dirname "$log")
|
||||
title=$(printf "%s" "$line" | awk -F'\t' '{print $1}' | sed 's|^.||')
|
||||
itemnum=$((logcount-index+1))
|
||||
page=$((((index)/logs_per_page)+1))
|
||||
page=$(( index / logs_per_page + 1 ))
|
||||
if [ "$page" -ne 1 ]; then
|
||||
entry_index_html="/var/www/html/log/index-${page}.html"
|
||||
else
|
||||
entry_index_html="${log_html}"
|
||||
fi
|
||||
# print link in listings
|
||||
if [ "$index" -lt 20 ]; then
|
||||
if [ "$index" -lt 20 ]; then
|
||||
printf "<a href=\"%s.html\">%s <span class=\"dim\">>></span> %s</a>\\n" "$loghtml" "$itemnum" "$title" >> "${root_index_html}"
|
||||
fi
|
||||
printf "<a href=\"%s.html\">%s <span class=\"dim\">>></span> %s</a>\\n" "$loghtml" "$itemnum" "$title" >> "${entry_index_html}"
|
||||
|
|
Loading…
Reference in New Issue