X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_attendee.sh;h=df3649e0653a966bdd2d4e65fc2d41117c649bfe;hp=1bfcceebd5df65fca3761fa97fa68ac90253f32e;hb=1e8f35fa92c610b540cbe365e2231194b58e0cc0;hpb=19a85441a8f173c3d2cd3d29fd7d95d2b471bb3c diff --git a/templates/view_attendee.sh b/templates/view_attendee.sh index 1bfccee..df3649e 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 edit)'' echo ' '$(l10n vcf_export)'' echo '
' echo '
'