comparison s4-funcs.sh @ 1005:c2fc7a148d2c draft

Suppress post-count in non-member group
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 29 Jan 2023 14:48:33 +0900
parents 70d9e8f1a85a
children 1586c9a93b5b
comparison
equal deleted inserted replaced
1004:70d9e8f1a85a 1005:c2fc7a148d2c
2938 for="dtcheck">話題一覧表示</label> 2938 for="dtcheck">話題一覧表示</label>
2939 EOF 2939 EOF
2940 cond="where a.id in (select id from blog_s where key='owner' and val=$qgrp) order by 稼動状態, ctime desc" 2940 cond="where a.id in (select id from blog_s where key='owner' and val=$qgrp) order by 稼動状態, ctime desc"
2941 colstate="state:稼動状態:frozen=rowclass=凍結" 2941 colstate="state:稼動状態:frozen=rowclass=凍結"
2942 frzbtn='<button class="toggle-frozen"></button>' 2942 frzbtn='<button class="toggle-frozen"></button>'
2943 if [ -n "$ismember" ]; then
2944 DT_COUNT=author DT_COUNT_HEADER="書" DT_COUNT_BY=$user
2945 fi
2943 DT_CHLD=article:blogid \ 2946 DT_CHLD=article:blogid \
2944 DT_QOWNER="$qgrp" \ 2947 DT_QOWNER="$qgrp" \
2945 DT_COUNT=author DT_COUNT_HEADER="書" DT_COUNT_BY=$user \
2946 DT_VIEW=replyblog dumptable html blog \ 2948 DT_VIEW=replyblog dumptable html blog \
2947 "ctime title heading team notify:通知$colmd $colstate" "$cond" \ 2949 "ctime title heading team notify:通知$colmd $colstate" "$cond" \
2948 | if [ -n "$iamowner" ] 2950 | if [ -n "$iamowner" ]
2949 then 2951 then
2950 sed -Ee "s,(<TD class=\"稼動状態\">).*(</TD>),\1$frzbtn\2," 2952 sed -Ee "s,(<TD class=\"稼動状態\">).*(</TD>),\1$frzbtn\2,"

yatex.org