]> git.plutz.net Git - lobster/commitdiff
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 57ad3f62add19c6aab8365a938a7ad9d901add34..647a7e87ab0cc819c1b86d70639af8abeb0ad139 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 685ea8a4a46ac57ce44b735dbe791d6234e4103a..35f33f357609d029e48f2032d2e9bfca06ecbd38 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>'