X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_course.sh;h=ab93e021fd50c1c49645908e88b7c33ebf45249b;hp=e5513c42ba560e1585dc3edfc41a33bdfce55d5b;hb=4e49d483fd5121fda86a33cf583c15afa6556ad1;hpb=b8bff97ab74a69d9a281c7fe1f9498f4f96a189a diff --git a/templates/view_course.sh b/templates/view_course.sh index e5513c4..ab93e02 100755 --- a/templates/view_course.sh +++ b/templates/view_course.sh @@ -1,3 +1,19 @@ +# Copyright 2014 Paul Hänsch +# +# This file is part of Confetti. +# +# Confetti is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Confetti is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Confetti. If not, see . dtstart="$values[DTSTART]" [ -z "$dtstart" ] && dtstart=$(date +%Y%m%dT%H%M%S) @@ -39,8 +55,10 @@ else rr_limit=ETERN fi +coursemail="" + echo '
' -echo '
' +echo '' echo '' echo '
' echo ' '$values[SUMMARY]'' @@ -67,9 +85,16 @@ for n in COMMENT COMMENT{0..10}; do [ -n "$values[$n]" ] &&\ done echo '
' +echo '
' +echo ' '$(l10n course_attendance)'' +list_attendance "$id" |sort -k 2 |sed -r 's:^([^ ]+) (.*)$:\2:' +echo '
' + echo ' ' echo '' echo '
'