diff s4-blog.sh @ 1002:47b3e770372d draft

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 wrap: on
line diff
--- a/s4-blog.sh	Sun Dec 04 10:36:33 2022 +0859
+++ b/s4-blog.sh	Sun Dec 04 16:59:59 2022 +0859
@@ -269,13 +269,16 @@
 	case "$isgrpadmin$blog_mode" in
 	  false*closed*|false*quiz|false*enquete*) ;;
 	  *)
-	    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>])"
+	    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>])"
 	    ;;
 	esac
 	;;
     esac
   fi
-  href4="${blog_math:+<span id=\"mathjax\">Math</span>} <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>"
+  hidebtn='<button type="button" id="hideauth" accesskey="a" title="Shortcut: A
+Hide/Show Author - Useful for summary printing
+OFFにするとまとめ印刷に便利。">著者OFF</button>'
+  href4="${blog_math:+<span id=\"mathjax\">Math</span>} $hidebtn <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>"
   $isgrpadmin &&
       href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"Shortcut: S${nl}State of Accesses\"> 読刻</a>"
   quizmodefile=$tmpd/quiz; rm -f "$quizmodefile"	# XXX: Global state
@@ -311,7 +314,6 @@
       case "$blogtype" in
 	"クイズ"|"XXXX集計")
 	  echo "${blogtype}モードは本人と管理者の書き込みのみが表示されます"
-	  echo "隠す/見せる(Hide/Show)" | html button 'id="quizwarn" type="button"'
 	  ;;
       esac | html p 'class="warn"'
 

yatex.org