X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fattendees.html.sh;h=3fee91a76782dd564059d2d01bef85c2e3cd9c26;hp=325ddb4053a4e577a5bca383d859c80c8563e0fd;hb=be911da6c63f2129a62dc50f92b749e0f2bb67ee;hpb=4e49d483fd5121fda86a33cf583c15afa6556ad1 diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh index 325ddb4..3fee91a 100755 --- a/templates/attendees.html.sh +++ b/templates/attendees.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Confetti. # @@ -23,59 +23,54 @@ check_order(){ } edit="${_GET[edit]}" +[ \! -f "vcard/$edit" -a \! -f "temp/$edit" ] && edit='' [ -z "${_GET[filtertype]}" ] && _GET[filtertype]="any" [ -z "${_GET[order]}" ] && _GET[order]="firstname" cat < +

$(l10n filter_label)

- +
$(l10n filter_type): - - - - - - - + + + + + + +
$(l10n filter_order): - - - + + +
-
+
-$( -[ -f "vcard/$edit" -o -f "temp/$edit" ] && edit_attendee "$edit" -if [ "$?" = 0 ]; then - listcards |grep -v "$edit" -else - listcards -fi |while read card; do - view_attendee "$card" -done -) +${edit:+$(edit_card "$edit")} EOF +listcards |grep ${edit:+-v} "$edit" \ +| while read card; do + cat <<-ENDCARD +
+ $(view_card "$card") +
+ ENDCARD +done + # vi:set filetype=html: