X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_course.sh;h=25e1cf403d09648bca4e857d6167bb4e3fe4de65;hp=f4c1b21a6f51462ee984e9e758d91a7b910926b0;hb=64ba969e05c05736d9c410c2829a525d8e9c76d6;hpb=bd9f9ebbf0add55cbba9d47691aad87504284570 diff --git a/templates/view_course.sh b/templates/view_course.sh index f4c1b21..25e1cf4 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,6 +55,8 @@ else rr_limit=ETERN fi +coursemail="" + echo '
' echo '
' echo '' @@ -63,13 +81,20 @@ echo '
' echo '
' echo ' '$(l10n COMMENT)'' for n in COMMENT COMMENT{0..10}; do [ -n "$values[$n]" ] &&\ - echo '

'$values[$n]'

' + echo '

'$(echo "$values[$n]" |sed -r "s:$:
:g" )'

' done echo '
' +echo '
' +echo ' '$(l10n course_attendance)'' +list_attendance "$id" |sort -k 2 |sed -r 's:^([^ ]+) (.*)$:\2:' +echo '
' + echo '
' echo ' '$(l10n edit)'' +echo ' '$(l10n courselist)'' echo ' '$(l10n ics_export)'' +echo ' '$(l10n course_mail)'' echo '
' echo '' echo ''