X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fview_attendee.sh;h=bdfdc6a621ebe2fe5ebfb0335f072d353d5c3352;hp=e1b6530b49406a224763e1460128dd1a8b23d1b2;hb=1c7bba82f5b6bc81fdedb9e4907019462982a749;hpb=69e661b5c8ec195bd3c4998a623a60607b47059e 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