X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_attendee.sh;h=e1b6530b49406a224763e1460128dd1a8b23d1b2;hp=c9adf7f9c8169b96ca487125826f183bd59c951a;hb=69e661b5c8ec195bd3c4998a623a60607b47059e;hpb=71195981a9ea7cc2a050c52f4247609e67d1dbf5 diff --git a/templates/view_attendee.sh b/templates/view_attendee.sh index c9adf7f..e1b6530 100755 --- a/templates/view_attendee.sh +++ b/templates/view_attendee.sh @@ -1,95 +1,80 @@ -declare -A item_name +# Copyright 2014, 2015 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 . -item_name[PHOTO]="Foto" -item_name[LOGO]="Logo" -item_name[FN]="Voller Name" -item_name[SOUND]="Aussprache" -item_name[GENDER]="Geschlecht" -item_name[KIND]="Typ" -item_name[TITLE]="Beruf" -item_name[ROLE]="Position" -item_name[ORG]="Organisation" -item_name[MEMBER]="Mitglied" -item_name[CATEGORIES]="Kategorien" -item_name[ANNIVERSARY]="Jubiläum" -item_name[BDAY]="Geburtstag" -item_name[EMAIL]="E-Mail" -item_name[TEL]="Telefon" -item_name[IMPP]="Chat" -item_name[ADR]="Anschrift" -item_name[URL]="Webseite" -item_name[LANG]="Sprache" -item_name[NOTE]="Notiz" +cat < +

$values[FN]

+ ${values[GENDER]:+$(l10n $values[GENDER])} -item_name[RELATED]="Kontakte" + $(for n in NICKNAME NICKNAME{0..10}; do + echo "${values[$n]:+aka. $values[$n]}" + done) -item_name[BEGIN]="" -item_name[CALADRURI]="" -item_name[CALURI]="" -item_name[CLASS]="" -item_name[CLIENTPIDMAP]="" -item_name[END]="" -item_name[FBURL]="" -item_name[GEO]="" -item_name[MAILER]="" -item_name[NAME]="" -item_name[PRODID]="" -item_name[PROFILE]="" -item_name[REV]="" -item_name[SORT-STRING]="" -item_name[SOURCE]="" -item_name[TZ]="" -item_name[UID]="" -item_name[VERSION]="" -item_name[XML]="" + ${values[BDAY]:+*: $values[BDAY]} + ${values[X-ZACK-JOINDATE]:+$(l10n label_join): $values[X-ZACK-JOINDATE]} + ${values[X-ZACK-LEAVEDATE]:+$(l10n label_leave): $values[X-ZACK-LEAVEDATE]} + ${values[SOUND]:+} + ${values[PHOTO]:+} + ${values[LOGO]:+} +
+

$(l10n TEL)

+ $(for n in TEL TEL{0..10}; do + echo "${values[$n]:+$tags[${n}_TYPE] $values[$n]}" + done) +
+ ${values[EMAIL]:+

$(l10n EMAIL)

} + $(for n in EMAIL EMAIL{0..10}; do + echo "${values[$n]:+}" + done) + ${values[IMPP]:+

$(l10n IMPP)

} + $(for n in IMPP IMPP{0..10}; do + echo "${values[$n]:+$tags[${n}_TYPE] $values[$n]}" + done) +
+

$(l10n ADR)

+ $(for n in ADR ADR{0..10}; do + echo "${values[$n]:+$values[$n]}" + done) + ${values[URL]:+

$(l10n URL)

} + $(for n in URL URL{0..10}; do + echo "${values[$n]:+$values[$n]}" + done) +
+

$(l10n NOTE)

+ $(for n in NOTE NOTE{0..10}; do + echo "${values[$n]:+$values[$n]}" + done) +
+

$(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) +
+
+END_HTML