X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_attendee.sh;fp=templates%2Fview_attendee.sh;h=bdfdc6a621ebe2fe5ebfb0335f072d353d5c3352;hp=e1b6530b49406a224763e1460128dd1a8b23d1b2;hb=2805ee334bead55e2ab08b7c4dbdbf07dcebf8e9;hpb=3df0e6c3d9ff72b4ace395bb78582765ef4bc6fb diff --git a/templates/view_attendee.sh b/templates/view_attendee.sh index e1b6530..bdfdc6a 100755 --- a/templates/view_attendee.sh +++ b/templates/view_attendee.sh @@ -15,9 +15,15 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . +n=$(printf %s "$values[N]" \ + | sed -rn 's:^([^;]*)(\;[^;]*)(\;[^;]*)?(\;[^;]*)?(\;[^;]*)?$:\4 \2 \3 \1 \5:gp' \ + | sed -r 's:,: :;s:\;: :g;s: +: :g;s:^ $::;' + ) +fullname="${n:-${values[FN]:-${values[NICKNAME]}}}" + cat < -

$values[FN]

+

$fullname

${values[GENDER]:+$(l10n $values[GENDER])} $(for n in NICKNAME NICKNAME{0..10}; do