s4

diff s4-blog.sh @ 1002:47b3e770372d

Auth-ON/OFF button available in all modes
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 04 Dec 2022 16:59:59 +0859
parents ae6c5df09f22
children 5bd1b5125049
line diff
     1.1 --- a/s4-blog.sh	Sun May 29 08:36:39 2022 +0900
     1.2 +++ b/s4-blog.sh	Sun Dec 04 16:59:59 2022 +0859
     1.3 @@ -269,13 +269,16 @@
     1.4  	case "$isgrpadmin$blog_mode" in
     1.5  	  false*closed*|false*quiz|false*enquete*) ;;
     1.6  	  *)
     1.7 -	    href3="(ファイル取得[<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"Shortcut: F${nl}File Retrieval\">記事順</a>|<a href=\"?gethandout+$rowid+by_uname\" accesskey=\"u\" title=\"Shortcut: F${nl}File Retrieval by User\">著者順</a>])"
     1.8 +	    href3="(ファイル取得[<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"Shortcut: F${nl}File Retrieval\">記事順</a>|<a href=\"?gethandout+$rowid+by_uname\" accesskey=\"u\" title=\"Shortcut: U${nl}File Retrieval by User\">著者順</a>])"
     1.9  	    ;;
    1.10  	esac
    1.11  	;;
    1.12      esac
    1.13    fi
    1.14 -  href4="${blog_math:+<span id=\"mathjax\">Math</span>} <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>"
    1.15 +  hidebtn='<button type="button" id="hideauth" accesskey="a" title="Shortcut: A
    1.16 +Hide/Show Author - Useful for summary printing
    1.17 +OFFにするとまとめ印刷に便利。">著者OFF</button>'
    1.18 +  href4="${blog_math:+<span id=\"mathjax\">Math</span>} $hidebtn <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>"
    1.19    $isgrpadmin &&
    1.20        href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"Shortcut: S${nl}State of Accesses\"> 読刻</a>"
    1.21    quizmodefile=$tmpd/quiz; rm -f "$quizmodefile"	# XXX: Global state
    1.22 @@ -311,7 +314,6 @@
    1.23        case "$blogtype" in
    1.24  	"クイズ"|"XXXX集計")
    1.25  	  echo "${blogtype}モードは本人と管理者の書き込みのみが表示されます"
    1.26 -	  echo "隠す/見せる(Hide/Show)" | html button 'id="quizwarn" type="button"'
    1.27  	  ;;
    1.28        esac | html p 'class="warn"'
    1.29