Mercurial > hgrepos > hgweb.cgi > s4
comparison s4-blog.sh @ 648:8ec02e0fd1d5
Allow gethandout even if blog is in frozen mode.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 08 May 2020 17:43:09 +0900 |
parents | 1fa8d503ea2b |
children | 535d961e71c1 |
comparison
equal
deleted
inserted
replaced
647:a8a5e6437f1a | 648:8ec02e0fd1d5 |
---|---|
198 case $blog_mode in | 198 case $blog_mode in |
199 *report*|*quiz*|*enquete*) | 199 *report*|*quiz*|*enquete*) |
200 href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"L\"> 提出状況 </a>" | 200 href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"L\"> 提出状況 </a>" |
201 ;; | 201 ;; |
202 esac | 202 esac |
203 if $isgrpadmin || $isowner; then | 203 ### if $isgrpadmin || $isowner; then |
204 href3="(<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"F\">ファイル取得</a>)" | 204 href3="(<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"F\">ファイル取得</a>)" |
205 fi | 205 ### fi |
206 fi | 206 fi |
207 href4='<a href="#bottom" accesskey="b" title="B"> 末尾へ</a>' | 207 href4='<a href="#bottom" accesskey="b" title="B"> 末尾へ</a>' |
208 $isgrpadmin && | 208 $isgrpadmin && |
209 href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"S\"> 読刻</a>" | 209 href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"S\"> 読刻</a>" |
210 quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state | 210 quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state |
228 FROM $ts WHERE id='$id' GROUP BY id; | 228 FROM $ts WHERE id='$id' GROUP BY id; |
229 EOF | 229 EOF |
230 if test -s $midfile && IFS='|' read edit ctime hexhead blogtype < $midfile | 230 if test -s $midfile && IFS='|' read edit ctime hexhead blogtype < $midfile |
231 then | 231 then |
232 cat<<-EOF | 232 cat<<-EOF |
233 <tr><td>${edit:+$href }$ctime $blogtype $href2$href3 $href4 $href5</td></tr> | 233 <tr><td>${edit:+$href }$ctime $blogtype $href2${edit:+$href3} $href4 $href5</td></tr> |
234 <tr class="preface${frozen_class:+ }$frozen_class"> | 234 <tr class="preface${frozen_class:+ }$frozen_class"> |
235 <td>`echo "$hexhead"|unhexize|htmlescape|hreflink|minitbl`</td></tr> | 235 <td>`echo "$hexhead"|unhexize|htmlescape|hreflink|minitbl`</td></tr> |
236 </table> | 236 </table> |
237 EOF | 237 EOF |
238 case "$blogtype" in | 238 case "$blogtype" in |