# HG changeset patch # User HIROSE Yuuji # Date 1643420501 -32400 # Node ID 0d9caeab3d81fc8725787317b47c19e66b3cd5f9 # Parent 193d9d2ed9c9bc5c6b9c2e21a9416f227909c72f Instant notify by "@all" sign at the beginning of article. diff -r 193d9d2ed9c9 -r 0d9caeab3d81 examples/common/default/default.css --- a/examples/common/default/default.css Fri Dec 24 08:39:25 2021 +0900 +++ b/examples/common/default/default.css Sat Jan 29 10:41:41 2022 +0900 @@ -152,6 +152,10 @@ td.repl h2:before {content: "■"; color: #a22;} td.repl h3:before {content: "◆"; color: #a22;} td.repl h4:before {content: "○";} +td.repl div.atall { + color: white; background: #66f; padding: 0 0.8ex; + display: inline-block; border-radius: 0.8ex; +} .blog_replies td.repatt {min-width: 12em;} table.blog_replies iframe { width: 80%; min-height: 300px; max-width: 50em; max-height: 80vw; diff -r 193d9d2ed9c9 -r 0d9caeab3d81 s4-blog.sh --- a/s4-blog.sh Fri Dec 24 08:39:25 2021 +0900 +++ b/s4-blog.sh Sat Jan 29 10:41:41 2022 +0900 @@ -43,7 +43,10 @@ blogtitle=`getvalbyid blog title "$blogid"` blogurl="$urlbase?replyblog+$blogid" action=${4:-書き込み} - mode=`getvalbyid blog notify "$blogid"` + case "$3" in + @all*) mode=all ;; + *) mode=`getvalbyid blog notify "$blogid"` ;; + esac isgroup "$blogowner" && _isgroup=true || _isgroup=false ### EXCEPT=`sqlquote "$user"` ## User should receive to feal some annoyance case $mode in @@ -94,6 +97,8 @@ fi elif echo "$firstline" | grep -q "^## "; then subject=${firstline#\#\# } + elif echo "$firstline" | grep -q "^@all "; then + subject=${firstline#@all } fi else # This else block is not symmetry, check later(2020-1209) @@ -609,7 +614,9 @@ ntmode="通知モード=$blog_notify${blog_team:+ (team=$blog_team)} 記事の1行目を「## 」(半角シャープシャープ空白=大見出し) にするとそれより後ろの部分がSubject(件名)になります。 -If the first line begins with "## ", sent it as Subject of email." +記事先頭に @all で全員(チーム所有の場合はチーム全体)通知になります。 +If the first line begins with "## ", sent it as Subject of email. +If begins with "@all", notify to all group(or team) members." textform=$(cat<<-EOF
'); + i.innerHTML = ii; + } + } } function initGrpAction() { var rev = document.getElementById("reverse");