X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_attendee.sh;h=0265a807e2d44ac4c69996303d4046711b178e04;hp=53c508c2a22a1e08bd83f7471de68e0a213c3c1f;hb=63e4f339c5eb99b4aed9a2f201c2547c06703b5c;hpb=debd0bd0d774c6151a8fbf6759778e2e0757c8bd diff --git a/templates/view_attendee.sh b/templates/view_attendee.sh index 53c508c..0265a80 100755 --- a/templates/view_attendee.sh +++ b/templates/view_attendee.sh @@ -1,13 +1,36 @@ +# 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 . + echo '
' echo '
' echo ' '$values[FN]'' -[ -n "$value[GENDER]" ] && \ +[ -n "$values[GENDER]" ] && \ echo ' '$(l10n $values[GENDER])'' for n in NICKNAME NICKNAME{0..10}; do [ -n "$values[$n]" ] &&\ echo ' aka. '$values[$n]'' done [ -n "$values[BDAY]" ] &&\ echo ' *: '$values[BDAY]'' + +[ -n "$values[X-ZACK-JOINDATE]" ] &&\ + echo ' '$(l10n label_join)': '$values[X-ZACK-JOINDATE]'' +[ -n "$values[X-ZACK-LEAVEDATE]" ] &&\ + echo ' '$(l10n label_leave)': '$values[X-ZACK-LEAVEDATE]'' + if [ -n "$values[SOUND]" ]; then echo '
' echo '' +echo '
' +echo ' '$(l10n course_attendance)'' +sed -rn 's:(.*)\t'$id'$:\1:p' "$_DATA/mappings/attendance" |while read each; do + cname="$(sed -rn 's:^SUMMARY\:(.*)$:\1:p' "$_DATA/ical/$each")" + echo ' '$cname'' +done +echo '
' +echo '' echo '
' echo ' '$(l10n edit)'' -echo ' '$(l10n vcf_export)'' +echo ' '$(l10n vcf_export)'' echo '
' echo '
'