X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_course.sh;h=f8e2f2cffb5aceb28bd1d928ae480eeb30edce10;hp=107fc799dea1b23092b62e171724aa2e1640ec4f;hb=d1e59a3ea7fc974ef954c8b5e66e06fe1af3ac55;hpb=41083d642a4468fbec3146c3b1c71dc9c1179fe2 diff --git a/templates/view_course.sh b/templates/view_course.sh index 107fc79..f8e2f2c 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) @@ -42,10 +58,10 @@ fi coursemail="" echo '
' -echo '
' +echo '' echo '' echo '
' -echo ' '$values[SUMMARY]'' +echo '

'$values[SUMMARY]'

' echo ' '$(date -d "$dts_date" "+%A %B %d, %Y - %H:%M") $(l10n t_oclock)'' [ "$rr_int" -eq 1 ] \ && echo ''$(l10n s$rr_freq)'' \ @@ -63,21 +79,22 @@ esac echo '
' echo '
' -echo ' '$(l10n COMMENT)'' +echo '

'$(l10n COMMENT)'

' for n in COMMENT COMMENT{0..10}; do [ -n "$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 '

'$(l10n course_attendance)'

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