s4

changeset 804:39e59b5b2131

Display ShowAll links only when $nlimit < $narts
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 14 Jun 2020 16:37:18 +0900
parents 45322d035c12
children f84cf537b5fb
files s4-blog.sh
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/s4-blog.sh	Sun Jun 14 16:33:22 2020 +0900
     1.2 +++ b/s4-blog.sh	Sun Jun 14 16:37:18 2020 +0900
     1.3 @@ -399,6 +399,8 @@
     1.4        [ $afternew -gt $nlimit ] && nlimit=$((afternew+0))
     1.5        err Newtop=$newtop lines=$narts afternew=$afternew nlim=$nilmit
     1.6      fi
     1.7 +  fi
     1.8 +  if [ $nlimit -gt $narts ]; then
     1.9      CAT="tail -n $nlimit"
    1.10      limitedmsg="<span class=\"warn\">※最新${nlimit}件のみの表示※</span>"
    1.11      showalllink="<a title=\"Show All\" href=\"?replyblog+$rowid+n:all\">全件表示</a>"