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 wrap: on
line diff
--- a/s4-blog.sh	Sun Jun 14 16:33:22 2020 +0900
+++ b/s4-blog.sh	Sun Jun 14 16:37:18 2020 +0900
@@ -399,6 +399,8 @@
       [ $afternew -gt $nlimit ] && nlimit=$((afternew+0))
       err Newtop=$newtop lines=$narts afternew=$afternew nlim=$nilmit
     fi
+  fi
+  if [ $nlimit -gt $narts ]; then
     CAT="tail -n $nlimit"
     limitedmsg="<span class=\"warn\">※最新${nlimit}件のみの表示※</span>"
     showalllink="<a title=\"Show All\" href=\"?replyblog+$rowid+n:all\">全件表示</a>"

yatex.org