included gender display using symbols
authorpaul <paul@plutz.net>
Wed, 12 Mar 2014 16:14:10 +0000 (16:14 +0000)
committerpaul <paul@plutz.net>
Wed, 12 Mar 2014 16:14:10 +0000 (16:14 +0000)
svn path=/trunk/; revision=40

templates/text_attendee.sh
templates/view_attendee.sh

index 57ad3f6..647a7e8 100755 (executable)
@@ -83,6 +83,11 @@ item_name[gender_female]="Weiblich"
 item_name[gender_male]="Männlich"
 item_name[gender_other]="Sonstiges"
 
+item_name[female]="&#x2640;"
+item_name[male]="&#x2642;"
+item_name[other]="&#x26A5;"
+item_name[none]="&#x26AA;"
+
 l10n() {
   [ -n "$item_name[$1]" ] && echo -n "$item_name[$1]" || echo -n "$1"
 }
index 685ea8a..35f33f3 100755 (executable)
@@ -1,7 +1,7 @@
 echo '<div id="'${id}'" class="card">'
 echo '  <div class="section basic">'
 echo '    <span class="item FN">'$values[FN]'</span>'
-[ -n "$value[GENDER]" ] && \
+[ -n "$values[GENDER]" ] && \
   echo '    <span class="item GENDER">'$(l10n $values[GENDER])'</span>'
 for n in NICKNAME NICKNAME{0..10}; do [ -n "$values[$n]" ] &&\
   echo '    <span class="item NICKNAME">aka. '$values[$n]'</span>'