X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=pages%2Fcards.sh;fp=pages%2Fattendees.sh;h=f2675ba0f7a9301baa88852376c9943791d2335b;hp=0a1f88df2ec0d9935b3d3eb696299a98f78c76d2;hb=69e661b5c8ec195bd3c4998a623a60607b47059e;hpb=af7ea29c5a4a36bce464f2b9b80ea448cbbf7ec9 diff --git a/pages/attendees.sh b/pages/cards.sh similarity index 97% rename from pages/attendees.sh rename to pages/cards.sh index 0a1f88d..f2675ba 100755 --- a/pages/attendees.sh +++ b/pages/cards.sh @@ -1,6 +1,6 @@ #!/bin/zsh -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Confetti. # @@ -204,7 +204,7 @@ vcf_parse() { | sed -r 's:[\\$`]:\\&:g' } -view_attendee() { #Parameter: Cardfile +view_card() { #Parameter: Cardfile id="$1" cardfile="$_DATA/vcard/${id}" cachefile="$_DATA/cache/${id}.cache" @@ -239,11 +239,11 @@ view_attendee() { #Parameter: Cardfile ;; esac done - . ${_EXEC}/templates/view_attendee.sh |tee "$cachefile" + . $view_card |tee "$cachefile" fi } -edit_attendee() { #Parameter: Cardfile +edit_card() { #Parameter: Cardfile id="$1" cardfile="$_DATA/vcard/$id" tempfile="$_DATA/temp/$id" @@ -277,5 +277,5 @@ edit_attendee() { #Parameter: Cardfile ;; esac done - . ${_EXEC}/templates/edit_attendee.sh + . $edit_card }